Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Stuff a word in a memo field
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01353836
Message ID:
01353839
Vues:
12
Hello,

Here is the code. The memo field, lcJuris, in this particular case is over 500 characters in length. I have located the phrase "did:" in the field and have added 4 to that number so the inserted work starts just after the colon. I now want to insert the phrase [knowingly] at that point in the memo field.

LOCAL ;
lcColon , ;
lcknowingly

SET STEP ON

lcColon = AT("did:",lcJuris)
lcColon = lcColon +4 && Add the 4 spaces of did:
lcknowingly = " [knowingly] "

IF "purposely" $ lcJuris OR;
"knowingly" $ lcJuris OR;
"recklessly" $ lcJuris OR;
"negligently" $ lcJuris
ELSE
STUFF(lcJuris, lcColon, 0, lcknowingly)
ENDIF

>The STUFF() is function not command. Can you post your code?
>
>>
>>I have a memo field that is several hundred characters long. I want to insert a word at varying points in the memo field. I have tried to use the STUFF command, but it is not working for me. Suggestions on how to insert a word at a particular point of the memo?
>>
Thanks,

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

Click here to load this message in the networking platform