Data type Conversions

Results 1 to 2 of 2

Thread: Data type Conversions

  1. #1
    Matthew Deeks Guest

    Default Data type Conversions

    Are there any Visual Basic functions that I can use for data type conversions like Str().<BR><BR>I am trying to do something like:<BR>Dim TmpStr<BR>Dim TmpDate<BR>TmpDate = now()<BR>TmpStr = "Today " + Str(day(TmpDate))<BR>Response.write TmpStr<BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: Data type Conversions

    Are you wanting to cast a variable as a string? You can use the function CStr.<BR><BR>tmpStr = "Today " & CStr(day(tempDate))<BR><BR>Use the ampersand (&) for string concatenation, not the plus sign.

Posting Permissions

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