Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DELETE ALL IN MyTable - Syntax Error?
Message
De
17/01/2006 10:39:31
 
 
À
17/01/2006 10:25:20
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:
01087536
Vues:
14
I'm glad you found the error. I am always careful with my #Define statements, I have also learnt it the hard way to make sure that the words are unique.

>Hi Tore,
>
>turns out it was a #DEFINE DELETE 65536 in an include file!
>
>Thanks.
>
>>Sounds like corruption. Try to USE the form, copy it to another name and see what happens when you try the same thing with the copy.
>>
>>>Hi Tore,
>>>
>>>whether or not the table is used during compile time shouldn't matter. The error occurs when I am saving the method code. However, I am sure the table (in this case it is a cursor) is open at runtime and I still get the error.
>>>
>>>>Are you sure that mytable is USEd? And note that you can also get an error if someone else use mytable, since ALL instructs VFP to lock the header.
>>>>
>>>>>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?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform