Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DELETE ALL IN MyTable - Syntax Error?
Message
De
17/01/2006 10:34:14
 
 
À
17/01/2006 10:31:01
Mike Yearwood
Toronto, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01087497
Message ID:
01087532
Vues:
9
Hi Mike,

I agree wholeheartedly. It turns out that I got this windows.h file from Gary deWitt for some Windows constants I was using way back when and this file doesn't stick to my naming convention. Anyhow, didn't need the file so removed it from the form.

>Hi Frank!
>
>IMO, a naming convention for constants would be very beneficial. What I've come up with so far is k for constant, a letter for the data type and then a meaningful name. In this example knDELETE would not have conflicted with your DELETE command.
>
>>Thanks Jim,
>>
>>I had thought of that too, but it happened in various different methods and different lines. Turns out an include file redefined DELETE!
>>
>>>Do you have an unprintable character somewhere in the line, or the line before or the line after?
>>> Might you have a semi-colon on the line before?
>>>
>>>That's about all I can think of.
>>>
>>>good luck
>>>
>>>>Hi,
>>>>
>>>>recently I started getting a syntax error when coding in a method on a form. The code I am trying to use is:
>>>>
>>>>
>>>>DELETE ALL IN MyTable
>>>>
>>>>
>>>>When I close the method, I get a VFP Compile error: Syntax Error.
>>>>
>>>>The confusing thing is that I am pretty sure I use this code all over the place, so why should it start giving me a syntax error now?
>>>>
>>>>FWIW, if I do it in the command window the command works.
>>>>
>>>>Any ideas what I am missing?
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform