Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to delete a record
Message
De
05/12/2007 12:00:37
 
 
À
05/12/2007 07:56:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01273227
Message ID:
01273289
Vues:
15
>Remove the apostroph, and use a memvar instead of the property, it's much faster. Also make sure that that the length of the memvar matches the field length.
>
>lcText=thisform.txtsno.value
>DELETE syllabus FROM syllabus WHERE syllabus.sno == lcText
>

I haven't seen this syntax before - and I get an error (Command contains unrecognized phrase/keyword) when I try it. Until I read your reply I thought the problem was the extra keyword, not that it had quotes around it. When would you put something between DELETE and FROM?





>>I am deleting records with these codes
>>I have problem some time, if any best instead of this.thanks
>>
>>xxz = MESSAGEBOX( ;
>> "Are you sure you want to Delete Record?", ;
>> 36)
>>IF xxz = 6
>> DELETE 'syllabus' FROM syllabus ;
>> WHERE syllabus.sno == ;
>> thisform.txtsno.value
>>ENDIF
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform