Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Clearing a General Field
Message
De
05/01/2000 08:35:35
 
 
À
04/01/2000 14:00:10
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:
00313138
Vues:
47
>>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'

Should read: <b>IF TYPE('tcGenFldName') = 'C' AND TYPE(tcGenFldName) = 'G'</b>

>   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
Répondre
Fil
Voir

Click here to load this message in the networking platform