gorilla1
11-07-2002, 07:44 PM
I am passing a variable to a routine with a query string like so:
?id=0 In the called routine, I assign fPtr equal to the value from id, and I compare the id value with a counter (cntr) and break from a loop if equal by way of this statement:
if cntr = fPtr then break
. To debug this, i wrote the counter and the id variable out to the screen. Even though cntr and ptr both show up as zero in the writes to the screen, the loop never breaks. Is this because cntr somehow is an integer and fPtr is a character string? How do I get them to both be numeric variables?
G
?id=0 In the called routine, I assign fPtr equal to the value from id, and I compare the id value with a counter (cntr) and break from a loop if equal by way of this statement:
if cntr = fPtr then break
. To debug this, i wrote the counter and the id variable out to the screen. Even though cntr and ptr both show up as zero in the writes to the screen, the loop never breaks. Is this because cntr somehow is an integer and fPtr is a character string? How do I get them to both be numeric variables?
G