Unregistered
December 23, 2002, 04:09:12
I see another troublesome spot. In .net there is no correlation between Selection.Start and the number of characters preceding that position. Whereas previous versions of TX used Chr(10) for linefeed, I'm getting the impression .net is using the NewLine+Carriage Return pair. But if you do that, you'll have to redo Selection.Start to reflect the actual number of characters.
These are simple outputs between .net and v8:
Blank doc:
Net text is nothing
net text.Len is 0
net sel.start is 0
v8 text is nothing
v8 text.len is 0
v8 selstart is 0
Doc with 1 hard return:
net text is HRt
net Len is 2
net sel.start is 1
v8 text is Hrt
v8 text.len is 1
v8 selstart is 1
Doc with 1 Character + 1 hard return:
net text is K+HRt
net Len is 3
net sel.start is 2
v8 text is K+Hrt
v8 text.len is 2
v8 selstart is 2
If there is need to position forward or back a certain number of characters, you'll never know where to move to, for the presence of the HRt throws off the sel.start.
I realize you want to get the final out soon, but this really has got to be fixed: either by return to Chr(10) OR by a Selection.Start that reflects the 10+13 pair.
This message was originally posted by Vann Joe in the old TX Text Control Support Forum.
These are simple outputs between .net and v8:
Blank doc:
Net text is nothing
net text.Len is 0
net sel.start is 0
v8 text is nothing
v8 text.len is 0
v8 selstart is 0
Doc with 1 hard return:
net text is HRt
net Len is 2
net sel.start is 1
v8 text is Hrt
v8 text.len is 1
v8 selstart is 1
Doc with 1 Character + 1 hard return:
net text is K+HRt
net Len is 3
net sel.start is 2
v8 text is K+Hrt
v8 text.len is 2
v8 selstart is 2
If there is need to position forward or back a certain number of characters, you'll never know where to move to, for the presence of the HRt throws off the sel.start.
I realize you want to get the final out soon, but this really has got to be fixed: either by return to Chr(10) OR by a Selection.Start that reflects the 10+13 pair.
This message was originally posted by Vann Joe in the old TX Text Control Support Forum.