I use the following code(see below) in a function to determine if program execution should continue, if it returns YES the execution continues, if NO then someother form of execution takes place.
I have a main loop, that scans through a a very large table and for each record it calls this subfunction.
Every thing works fine and then suddenly i get the following message: "Matching Error: Unmatched parenteses", which is caused by the code below. I dont know why this happens, as the firts couple of times the code works fine and for no reason (that i can detemine)this message pops up.
So any ideas guys?
Thanks Richard
Code:
strYes = "YES"
strNo = "NO"
if AgeGroup.value = "30 days +" then
if (tc.cur30 >= 1 OR tc.cur30 <= -1) then
return (strYes)
else
return (strNo)
endif
PS: The tcursor here is passed to the function, so that it test every record from the main loop which uses the same Tcursor.
I have a main loop, that scans through a a very large table and for each record it calls this subfunction.
Every thing works fine and then suddenly i get the following message: "Matching Error: Unmatched parenteses", which is caused by the code below. I dont know why this happens, as the firts couple of times the code works fine and for no reason (that i can detemine)this message pops up.
So any ideas guys?
Thanks Richard
Code:
strYes = "YES"
strNo = "NO"
if AgeGroup.value = "30 days +" then
if (tc.cur30 >= 1 OR tc.cur30 <= -1) then
return (strYes)
else
return (strNo)
endif
PS: The tcursor here is passed to the function, so that it test every record from the main loop which uses the same Tcursor.