Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ZAP command question
Message
From
26/05/2006 09:26:31
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
26/05/2006 09:23:03
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01125239
Message ID:
01125245
Views:
19
This message has been marked as the solution to the initial question of the thread.
>I am having a problem in one of my applications, and I think it may be careless use of the ZAP command. A table is getting cleared when I don't want it to. If I have code like below, if there are no records in the DEAL table and I try to ZAP it, are there any consequences? Should I be issuing the ZAP command within the IF statement?
>
>
>CREATE CURSOR DEAL (WDIST C(2), IDIST C(2), VWGDST C(2));
>
>lnConnHandle=Sqlstringconnect(lcConnString)
>=SQLEXEC(lnConnHandle, lcSQLString, 'DEAL')
>=SQLDISCONNECT(lnConnHandle)
>
>SELECT DEAL
>
>IF RECCOUNT() > 0
>     * Additional code
>ENDIF
>
>ZAP
>
Consequences? You will probably lose a fraction of a second. Visual FoxPro won't bomb out if you try to ZAP a table with zero records.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform