>>>
>>>I believe this would be considered a BUG.
>>>
>>
>>Not a but. LEFT is a reserved word. The general feeling is that you should avoid anything as a procedure name, field, or variable that shows up in blue in the VFP 5.0 editor.
>
>I think I'd still consider this a BUG. Doesn't FP know what its reserved words are? Yes, you are correct is saying I shouldn't have used a field named *LEFT*, but ...
>
>I don't think that VFP does as good a job as it could in checking for errors before closing tables, snippets, etc.
>
>For instance if a prg contains
>
> IF .T. && or
>
> do while .T.
> messagebox('hi mom',4,"that's all")
>
> return
>
>you don't get any errors, until you run the prg. There are other tools which do a better job in *checking* snippets, tables, etc. before a problem is found much later, as was the case with my table including a field named *left*.
>
>FWIW, Kim
I just tried your code in both FPW 2.6 and VFP 5.0 and both caught the errors.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer