insertion point [message #83166] |
Sun, 17 August 2003 10:22 |
zakariya
Messages: 4 Registered: August 2003
|
Junior Member |
|
|
Dear guys,
Can any of you help me in appending a text at an insertion point in a text item in d2k ? For example,
I already have a text 'MY TEXT' in a text item and the insertion point is after the word 'MY'. Now I want to append another text 'BEAUTIFUL' after the word 'MY' so that the whole thing read as 'MY BEAUTIFUL TEXT'. Let me know how can I do this programmatically and not by typing. I need to know the position of the insertion point.
Thanks in advance
|
|
|
Re: insertion point [message #83168 is a reply to message #83166] |
Sun, 17 August 2003 21:37 |
Shailender Mehta
Messages: 49 Registered: June 2003
|
Member |
|
|
1 select 'My Text'
2 ,Substr('My Text', 1, Instr('My Text',' '))
3 || 'Beautiful '
4 || Substr('My Text', Instr('My Text',' ')+1,
Length('My Text'))
5* from dual
Test Db>/
'MYTEXT SUBSTR('MYTEXT',1
------- -----------------
My Text My Beautiful Text
What I am trying do is :-
1. Use the Instr Built-in function to look for
space " "
2. Extract all characters before the space " "
3. Append string "Beautiful"
4. Use the Instr bult-In again to scan for the
space " " and then extract all the remaining
characters after the occurance of the character
space " "
|
|
|
Re: insertion point [message #83174 is a reply to message #83168] |
Mon, 18 August 2003 11:09 |
Imran Ahmad
Messages: 22 Registered: March 2002
|
Junior Member |
|
|
Hello Guys,
I m also facing the same problem. Sheila i understand what u want to say but my question is how would i know the insertion point like zakariya says. I dont know how much user type in a text item but i want to insert text if user point in a middle of any text in a text item. Please help me.
Imran
|
|
|