Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SELSTART & VALID
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00524184
Message ID:
00524547
Views:
12
Hi!

Looks like you call Refresh of the textbox or Refresh of any parent container/form for text box. In this case, after refresh, SelStart and SelLength properties are reset. Thus you require to set up them after refreshing. In addition, how you set up the position at the end of the text? I usually use following:

TextBox.SelStart = len(rtrim(TextBox.Text))

HTH.

>To all,
>
> I'm attempting to RETURN .F. in the valid of a text box, and place the cursor at the end of the text that's already in there. But everytime I RETURN .F. the SELSTART is reset to the beginning even though right before I'm setting it to where it needs to be. Does anyone have a suggestion on this, or am I just doing something wrong.
>
> Any help would be appreciated.
>
>John Rowlinson
>Microworks POS Solutions
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Reply
Map
View

Click here to load this message in the networking platform