Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cannot delete a record from a table
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01230394
Message ID:
01230397
Views:
22
>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


Never mind. Solved it.

Nick
Previous
Reply
Map
View

Click here to load this message in the networking platform