URGENT HELP_string to long

Guneet
12-17-2001, 11:10 AM
hey anyone can tell me how to convert a string into a long.

THANX

--guneet

Banjo
12-17-2001, 11:14 AM
str = CStr(num)

Squirm
12-17-2001, 11:16 AM
Guess who didnt read the post before they replied?? images/icons/tongue.gif

<pre>Dim lngVariable As Long
Dim strVariable As String
strVariable = "132234"
lngVariable = CLng(strVariable)</pre>

Banjo
12-17-2001, 11:19 AM
Ooops, I transposed them. Squirm is right. This time images/icons/smile.gif.

Mill
12-17-2001, 12:11 PM
Well, I'm sure glad I took the time to answer the PM about this same question...

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum