Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Stuff a word in a memo field
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01353836
Message ID:
01353842
Views:
15
DUH!!

It works like a charm! I appreciate your help.

Thanks,

TFISHER

>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
>
Thanks,

TFISHER
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform