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:
01353840
Vues:
15
As I said, the STUFF() is function and as such returns result of it action. See correction in the code below
>
>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
			lcJuris = STUFF(lcJuris, lcColon, 0, lcknowingly)
>		ENDIF
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform