I have HEX data as a string:
String= "00,01,02,03,04,05,06,07,08,09,0A,0B,0C,0D,ZZ"
That I can read successfully with:
arr(makepoints)=Val(Mid$(Usethis,Start,Qty)
My problem is that I need to translate each point of the string into decimal values. I've tried:
arr(makepoints)=CDec(&H(Val(Mid$(Usethis,Start,Qty))))
and
arr(makepoints)=Val(Cdec($H(Mid$(Usethis,Start,Qty))))
but I get errors.
How can I put the Decimal value of each point in the string into arr(makepoints)?
Thanks,
Gary
String= "00,01,02,03,04,05,06,07,08,09,0A,0B,0C,0D,ZZ"
That I can read successfully with:
arr(makepoints)=Val(Mid$(Usethis,Start,Qty)
My problem is that I need to translate each point of the string into decimal values. I've tried:
arr(makepoints)=CDec(&H(Val(Mid$(Usethis,Start,Qty))))
and
arr(makepoints)=Val(Cdec($H(Mid$(Usethis,Start,Qty))))
but I get errors.
How can I put the Decimal value of each point in the string into arr(makepoints)?
Thanks,
Gary