CLEAR ll="hi = .t." FOR ia=1 TO 1022 ll= ll +" and .t." ENDFOR ?LEN(ll) &ll ?hi>Is there a limit on the number of AND conditions in a logical expr. I use the code below. It was operating fine till I I had to add another 6 conditions. Now the compiler highlights whole lot and just says "syntax error". I enclose the code just in case any of you dead-eye Dicks can see a typo or whatever (it all colour codes OK in the editor)
>With Thisform > llOpenedEnough = .lmGetMIFacMast( lcMapDataPath) and ; > .lmGetMIZG( lcMapDataPath) and ; > .lmGetMIRZStops( lcMapDataPath) and ; > .lmGetMIStops( lcMapDataPath) and ; > .lmGetMIRoutes( lcMapDataPath) and ; > .lmGetMIJourneys( lcMapDataPath) and ; > .lmGetMIOperators( lcMapDataPath) and ; > .lmGetMITendTypes lcMapDataPath) and ; > .lmGetMIServCats( lcMapDataPath) and ; > .lmGetMIOpQuals( lcMapDataPath) and ; > .lmGetMIVehTypes( lcMapDataPath) and ; > .lmGetMIBooking( lcMapDataPath) and ; > .lmGetMITimeBand( lcMapDataPath) and ; > .lmGetMIOnDS( lcMapDataPath) and ; > .lmGetMIFacTypes( lcMapDataPath) and ; > .lmGetMIRESUS( lcMapDataPath) and ; > .lmGetMIAPs( lcMapDataPath) and ; > .lmGetMIAAs( lcMapDataPath) and ; > .lmGetMISysOpts( lcMapDataPath) >EndWith >