Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Clearing a General Field
Message
De
04/01/2000 14:00:10
 
 
À
04/01/2000 13:09:10
Steven Dyke
Safran Seats USA
Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00312541
Message ID:
00312603
Vues:
28
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform