> > 072: BEGIN CASE > > 073: CASE ANS MATCHES '0N' & ANS>0 > > 074: IF MITM<5,ANS>#"" THEN > > 075: IF MITM<7,ANS>#"" THEN GOSUB 200 ; IF
I saw a case similar to this. There was this program code which was looking for an address. There was an index per building where the city code, civic number and street name was the key. The appartments were seperated by value marks on field 1. Anyhow, the LOCATE command on the appartments, made a match for appartment 1 when appartment 1E0 was what was being looked for. 1E0 was interpreted as: 1 x 10^0 which meant the same as 1. Years ago: num(" ":1 ) would give 1, now it is true on 10.something. In the above example I believe that if ANS is a string, the 0 will be treated as: "0" (the string zero). In which case it can be compared. Perhaps you should change the code to: ANS += 0 ;* Force it to become a number BEGIN CASE CASE ANS MATCHES '1N0N' AND ANS >0 '1N0N' will force at least one numerical digit to pass __________________________________ Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web http://birthday.yahoo.com/netrospective/ ------- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/