Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Clearing a General Field
Message
From
04/01/2000 14:00:10
 
 
To
04/01/2000 13:09:10
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00312541
Message ID:
00312603
Views:
29
>How can I programaticaly clear the contents of a General Field?
>

The following trick with clear a general field neatly:
FUNCTION ClearGenFld
LPARAMETER tcGenFldName
IF TYPE('tcGenFldName') = 'C' AND TYPE('tcGenFldName') = 'G'
   LOCAL cInAlias, cRefAlias
   cInAlias = ALIAS()
   cRefAlias = SYS(2015)
   SELECT 0
   CREATE CURSOR (cRefAlias) (GenFld G)
   APPEND BLANK
   IF ! EMPTY(cInAlias)
      SELECT (cInAlias)
      REPLACE (tcGenFldName) WITH (cRefAlias + '.GenFld')
   ENDIF
   USE IN (cRefAlias)
ENDIF
RETURN
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform