Bryan - Gendev
Programmer
I have a user who wants to insert text into one of my fields via a text file.
I have created a system whereby I give the user 3 254 chr strings to compose the contents.
I then concatenate them and add into the Memo field in my code.
I am writing out the original Memo field into 3 strings into a text file as a starting point
I am wondering whether anyone can suggest a better way than
myCaption_1 = Subst(TEMP_C.Caption,1,254)
myCaption_2 = Subst(TEMP_C.Caption,255,254)
myCaption_3 = Subst(TEMP_C.Caption,255+254+1,254)
where a space is chosen as the break point rather than splitting up a word at the end of the string.
It is unlikely that more than 3 X 254 chrs will exist in the Memo field.
Thanks for any thoughts
GenDev
I have created a system whereby I give the user 3 254 chr strings to compose the contents.
I then concatenate them and add into the Memo field in my code.
I am writing out the original Memo field into 3 strings into a text file as a starting point
I am wondering whether anyone can suggest a better way than
myCaption_1 = Subst(TEMP_C.Caption,1,254)
myCaption_2 = Subst(TEMP_C.Caption,255,254)
myCaption_3 = Subst(TEMP_C.Caption,255+254+1,254)
where a space is chosen as the break point rather than splitting up a word at the end of the string.
It is unlikely that more than 3 X 254 chrs will exist in the Memo field.
Thanks for any thoughts
GenDev