Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Backwards Text
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00522944
Message ID:
00525053
Views:
17
Andrew,

I have put the following code in the InteractiveChange of the
edit box:
Messageb(TRAN(This.SelStart) + ", " + TRAN(LEN(This.Value)))
Messageb(TRAN(This.SelStart) + ", " + TRAN(LEN(This.Value)))
SelStart changes back to 0 in between the two messageboxes.
Refresh, GotFocus, LostFocus etc don't occur at all.
And what makes it worse is that it seems to be very random, although
it doesn't work more often than it does work.

Any more ideas?

Chris.

>Chris, it looks like something is setting the selstart property back to 0 - look back through the class heirarchy for the text box. You'll notice that when sellength > 0 in the last example, the B came out at the front.
>
>Cheers,
>
>Andrew
>
>>Hi,
>>
>>I have a gridbox with an editbox for the control in
>>one of the columns. The problem with this is that
>>the text randomly comes out backwards. I have made
>>sure RightToLeft is set to .F. but it still does it.
>>
>>If you can't understand what I mean, here is a small
>>example : Sample(322kb)
>>
>>
>>Thanks in advance for any suggestions.
>>
>>Chris Ormerod
Have a nice day :)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform