VictorFRodriguez
Programmer
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
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