G
gouved
In my form, I cut and paste into a formfield data that consists of three
strings separated by a tab--"word1 (tab) word2 word3 word4 (tab) word5".
This works fine for one part of my document.
In another part of my document I want the last tab and word5 deleted, and
the remaining tabs replaced with ", " (a comma and a space). Word5 can be
either "self" or "personnel". With an idea from a thread suggesting:
myData=Replace(myData,chr(40),"-"),
I tried setting the formfield value to strVal, replacing the text as follows:
strVal = Replace(strVal, "^tSelf", "")
strVal = Replace(strVal, "^tPersonnel", "")
strVal = Replace(strVal, "^t", ", ")
then saving in another formfield. The resulting text was the same as the
original.
Any suggestions?
strings separated by a tab--"word1 (tab) word2 word3 word4 (tab) word5".
This works fine for one part of my document.
In another part of my document I want the last tab and word5 deleted, and
the remaining tabs replaced with ", " (a comma and a space). Word5 can be
either "self" or "personnel". With an idea from a thread suggesting:
myData=Replace(myData,chr(40),"-"),
I tried setting the formfield value to strVal, replacing the text as follows:
strVal = Replace(strVal, "^tSelf", "")
strVal = Replace(strVal, "^tPersonnel", "")
strVal = Replace(strVal, "^t", ", ")
then saving in another formfield. The resulting text was the same as the
original.
Any suggestions?