Yes... they are Qbasic conversion functions.
They are not the same as Cint, etc.
CVI, CVL, CVD, and CVS converts a string
containing binary numeric information to
numbers... Integer, Long, Double, and
Put the integer 2314 (&h090A) into a string...
x$=chr$(10) & chr$(9)
i = Cint(x$) produces an error because x$
does not contain valid information for the
Cint. It wants either an expression or
string containing numeric characters.
Example: i = Cint("2314")
i = CVI(x$) converts the binary number
to an integer. The closest VB has that
I can see is the ASC function... but it
only does one byte at a time.
So I can do this for integers:
i = ASC(mid$(x$,1,1) + (ASC(mid$(x$,2,1)) * 256)
This works for Integers, and using the same
idea it will work for Longs too.
But what do I do for Doubles and Singles?
Right now, I can get around the problem
by getting the data from the file in binary...
one get at a time, like this:
It would be nice to be able to get a whole
string of information with one "get" and
process the different segments as needed.