Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

STUFF in SELTEXT with error results

Status
Not open for further replies.

VictorFRodriguez

Programmer
Jan 20, 2001
51
DO
I have a list box with some HTML codes in one side of a form and in the other an Edit box in which I select a text and when clicking over the desired HTML tag in the list box should include the pre tag and post tag in the selected text.
But the result truncate some letters or text.
This is the code I use:
*--------- CODE -------------
cResultCode = cTag1+THISFORM.edtNotes.SelText+cTag2

THISFORM.edtNotes.value=STUFF(THISFORM.edtNotes.value,THISFORM.edtNotes.SelStart,LEN(THISFORM.edtNotes.SelText),cResultCode)
* -------------------------------------------
This should work fine but the true is other.
Victor F. Rodriguez

 
You may be passing 'illegal' characters, such as quotes to the value. What is an actual string that doesn't work?

Brian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top