Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Updating records in FoxPro tables
Message
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00565010
Message ID:
00565037
Views:
23
Here's the version of the code that allows to pass table name, key filed name and tag name as parameters (not tested).
PARAMETERS tcTable, tcKeyField, tcTag
Select (tcTable)
Set Order To (tcTag)
lKeyfiled = Null
SCAN
    IF lKeyfield = Evaluate(tcKeyField)
        Delete
    ELSE
        lKeyfield = Evaluate(tcKeyField)
    ENDIF
ENDSCAN
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform