View previous topic :: View next topic
|
Author |
Message |
anjumraza
New User
Joined: 21 Nov 2007 Posts: 17 Location: bangalore
|
|
|
|
HI all,
Please help me with a query regarding placing the cursor on a screen.
As we know if we move -1 to fieldname+L then the cursor will be positioned to the starting of the field. No my question is, i have text field of length 75 characters on the screen and i want to place the cursor somewhere in between dynamically. I have calculated as where the cursor should be positioned but my question is how to move that number.
Just i tried to set the value of EIBCPOSN to the calculated value and quoted CURSOR also in SEND command, but it didnot work.
Can anyone please help me,
Thanks in advance,
Anjum Raza. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
What's the variable definition you used for the CURSOR variable? What value did you give to the CURSOR variable? What's the SEND MAP command look like? I wouldn't use both EIBCPOSN and CURSOR -- just set the CURSOR variable. |
|
Back to top |
|
|
Earl Haigh
Active User
Joined: 25 Jul 2006 Posts: 475
|
|
Back to top |
|
|
anjumraza
New User
Joined: 21 Nov 2007 Posts: 17 Location: bangalore
|
|
|
|
Thanks Earl,
had gone thru the link you have provided, will try that tomorrow.
Robert,
The variable in the program that is passed to map is actually X(2500) but i will pass only 75 characters at a time. The cursor should be placed within these 75 chars but the cursor position is +429 on the map. But i didnot know about CURSOR(data-value) option as given in the link provided by Earl. Thanks for your advice,
Thank you members,
Anjum raza. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Quote: |
the cursor position is +429 on the map |
Remember that the CURSOR field is an offset -- relative to zero -- not a displacement relative to one. If your cursor shows up one byte past where you want it, you'll need to adjust it. |
|
Back to top |
|
|
|