Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Edit Memo Fields programatically
Message
De
14/07/2004 11:09:36
 
 
À
14/07/2004 10:50:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00924229
Message ID:
00924241
Vues:
10
Hi Mark,

Provided you keep a strict control of the format of the memo field, you should be able to do it.

In the example you gave, assuming that the name of the memo field was repcode, the following should change the value of lSummary to .T. and add a new line.
REPLACE repcode WITH STUFF(repcode,AT('lSummary',repcode)+12,1,'T')
REPLACE repcode WITH repcode + 'cDbf = "Fred.dbf"'+CHR(13)
Easy isn't it? Changing the way you use spaces between records will however screw things up nicely. To cope with this, more coding is needed.

Alan
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform