Forcing a string.

Results 1 to 3 of 3

Thread: Forcing a string.

  1. #1
    Al Bear Guest

    Default Forcing a string.

    What is the syntax to force a string?

  2. #2
    Join Date
    Dec 1969

    Default What is the syntax to force a string????????

    could you be specific, are u talking about "Cstr" ?

  3. #3
    Join Date
    Dec 1969

    Default RE: Forcing a string.

    You can cast your expression as a string using<BR><BR>CStr(expression)<BR><BR>But, be aware that VBS has only 1 data type : variant. So your string may unwantedly get changed back to another "data type" or format later by VBS as well.<BR><BR>Cast your expression right before you need to reference it so VBS doesn&#039;t change it on you.<BR><BR>Here is an excellent article about VBS data types :<BR><BR><BR><BR>Regards,<BR>Reginald

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts