I read that as "I want to insert text into the field at the end of the first line."
In a script:
Set Field [Table::YourField ; GetValue(InsertTextInList::ValueField ; 1 ) & "abc" & ¶ & RightValues(InsertTextInList::ValueField ; ValueCount ( InsertTextInList::ValueField ) - 1 ) ]
I will try..
You want to put the word? Or the computer put the word? If you want to allow User to type at a cursor point, try:
Set Selection [ Start Position = Position ( text ; ¶ ; 1 ; 1 ) ] ... and no end position.
Here is an example (below in blue) which asks for the line which will allow flexibility. However, I would like to ask what you are working on that requires this functionality? There may be other approaches as well, for example, this multiline suggests that you might be better off using records instead of combining information into a single field. :^)
Regardless, even if you want to have computer insert the text, it can certainly be easier as:
Set Field [ text ; Let ( start = Position ( text ; ¶ ; 1 ; 1 ) ; Replace ( text ; start ; 0 ; "ABC" ) )
As you can see by the demo file, you can use global field to hold the line number (which would replace the red) and also a global field to hold the text to insert (which would replace the "ABC".
Thank you LaRetta
your help make me happy.
i wish you have a good luck.