If you meant '4 bytes', not 'digits', and you need this to convert binary representation of the number in the string to the numeric variable in VFP (it is used very often when working with API functions), use following:
If you want to play with the numbers after segmenting them out use an array
lcString = "ADFK" or whatever
lnLen = len(lcString)
dimension laArray(lnLen)
for lnX = 1 to lnLen
laArray = asc(substr(lcString , lnX , 1)
endfor
..
code to play with the array
David W. Grewe
Dave@internationalbid.com
ICQ VFP ActiveList #46145644
lcString = "ADFK" or whatever
lnLen = len(lcString)
dimension laArray(lnLen)
for lnX = 1 to lnLen
laArray[lnX] = asc(substr(lcString , lnX , 1)
endfor
..
code to play with the array
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.