Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cannot delete a record from a table
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Cannot delete a record from a table
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01230394
Message ID:
01230394
Vues:
88
I am trying to delete first record from a table, but nothing deletes. What am I doing wrong here?


USE payment_tbl EXCLUSIVE
set safety off
zap
currpath=sys(5)+sys(2003)+'\'
adir(a__gen2,currpath+'cnty*.*')
if type('a__gen2') # 'U' and type('a__gen2') # 'L'
sour=a__gen2(1,1)
*conv=stuff(sour,1,9,'')
conv='Payment.txt'
dest=currpath+conv
sour = currpath+sour
rename (sour) to (dest)
release a__gen2
ENDIF
SELECT payment_tbl

appe from 'payment.txt' sdf
DELETE FROM payment_tbl WHERE RECNO = 1
messagebox('payment file done')

thanks
Nick
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform