atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Thu Mar 13, 2008 4:42 pm Post subject: |
|
|
The functions I listed above are used to convert any type of variable to a string.
For example, converting a long number to a string the "correct" way:
| Code: | Dim dwLongNumber As Long
dwLongNumber = 1234567890
Dim strNumberString As String
strNumberString = CStr(dwLongNumber) |
As for the others, such as CLng, converting a string to long:
| Code: | Dim strNumberString As String
strNumberString = "1234567890"
Dim dwLongNumber As Long
dwLongNumber = CLng(strNumberString) |
_________________
- Retired. |
|