assist with convert issue - TechRepublic
Question
July 13, 2009 at 11:52 AM
sirjoel

assist with convert issue

by sirjoel . Updated 17 years ago

Hello,

I have a file that holds the keys (parameters) for my script. I read the file in and load the values into an array.

During the run of my code, I compare array value to value returned from a datediff call and the code returns all the entries weather or not they match. I did a convert.toint32 on the array value and it still does not filter.

code example 1

keyage = convert.toint32(keyarray(2))

if idiff < keyage then ... doesnt work. If I just type the value it works fine. code example 2 ... if idiff < 30 then ... does work. What did I miss?

This discussion is locked

All Comments