Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Position cursor in a EditBox in grid
Message
From
17/04/2019 16:04:23
 
 
To
17/04/2019 14:17:48
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01668156
Message ID:
01668160
Views:
62
>Hi,
>
>One simple case:
>
>I have a grid and edibox inside grid. I find myself on the editbox, for example on the 25 position inside the editbox.
>I've right click from editbox and for example I've invite the browse or, for example, another form
>How to return to position 25 after returning from the browse (or another form) to editbox in grid ?
>Please example
>
>I've tried with selstart, but it's not working
>
>Thanks

I tested this code:
_screen.AddObject("abc", "editbox")
_screen.abc.Visible = .t.
Here I manually clicked on the editbox and pressed spacebar 25 times. I then ran this by typing in all lines, selecting it, right-click, "Execute selection". It reported 25.
_screen.abc.SetFocus
KEYBOARD '{SHIFT+LEFTARROW}'  && Simulate the user typing Shift+Left to begin selecting text
? _screen.abc.selStart
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform