Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
About add/remove field in runtime and subtran.
Message
De
30/11/1999 12:17:53
 
 
À
30/11/1999 12:00:53
Jacky Yuen
Myth Group Computer Technology
Hong Kong, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00296923
Message ID:
00296943
Vues:
40
>Hi ,
> I have two problems now.
>
> Firstly ,I doubt if there is any command that can add/remove field in table during runtime ?
>

Look at the ALTER TABLE command.

> Then ,I try to use subtran to remove chr(13) in memo field ,but fail.
>Code is here :
> StrA = chr(13)
> StrB = Chr(13) + Chr(13)
> StrC = Subtran(StrC ,StrA ,StrB)
>

To remove all CHR(13) occurances from a memory field:

StrC = CHRTRAN(StrC, CHR(13), "") && faster, but limited see docs

or

StrC = STRTRAN(StrC, CHR(13), "") && not subtran!!!!

To reduce all occurances of multiple CHR(13) to a single CHR(13)

StrC = STRTRAN(StrC, CHR(13) + CHR(13), CHR(13)) && cannot use CHRTRAN here
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