W
wb
Newbie at .net having trouble with data conversion.
I am using the random constructor and trying to pass in seed value of time
as instructed by help.
rvalue = new random(int)
dim x as long
dim z as integer
x = datetime.now.tick
z = int(x)
when the coversion takes place an exception error is thrown. maybe it isn't
possible to convert a long to an int. But that is what the constructor
takes and the help says that time is a good value to pass in.
suggestions?
WB
I am using the random constructor and trying to pass in seed value of time
as instructed by help.
rvalue = new random(int)
dim x as long
dim z as integer
x = datetime.now.tick
z = int(x)
when the coversion takes place an exception error is thrown. maybe it isn't
possible to convert a long to an int. But that is what the constructor
takes and the help says that time is a good value to pass in.
suggestions?
WB