stonezhang
May 17th, 2001, 02:59 AM
like convert "55" to Integer 55
stone.zhang@one2one.co.uk
stone.zhang@one2one.co.uk
|
Click to See Complete Forum and Search --> : How to convert s pure digit Sting to a Integer stonezhang May 17th, 2001, 02:59 AM like convert "55" to Integer 55 stone.zhang@one2one.co.uk Andrew_Fryer May 17th, 2001, 03:39 AM use Int, i.e Int("55") Cimperiali May 17th, 2001, 03:44 AM dim strS as string dim intNumber as integer, lngNumber as long, dblNumber as double strS = "55" intNumber = Cint(strS) lngNumber =Clng(strS) dblNumber =Cdbl(strS) Have fun. Special thanks to Lothar "the Great" Haensler, Tom Archer, Chris Eastwood Bruno Paris and all the other wonderful people who made and make Codeguru a great place. Come back soon, you Gurus. Cimperiali May 17th, 2001, 03:46 AM ... to tell the truth, my example was a little short: dim strS as string dim intNumber as integer, lngNumber as long, dblNumber as double strS = "55" if isnumeric(strS) then intNumber = Cint(strS) lngNumber =Clng(strS) dblNumber =Cdbl(strS) end if Special thanks to Lothar "the Great" Haensler, Tom Archer, Chris Eastwood Bruno Paris and all the other wonderful people who made and make Codeguru a great place. Come back soon, you Gurus. codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |