Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strange memo editing behaviour
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00125100
Message ID:
00125513
Views:
39
>>>Rex,
>>>
>>>Try changing the code to this;
>>>
>>>
>>>THISFORM.pbPrint.Enabled = NOT EMPTY(THIS.Value)
>>>THISFORM.pbExport.Enabled = NOT EMPTY(THIS.Value)
>>>
>>
>
>Rex,
>
>The Keypress is too early, it fires before the control gets the keystroke. PUt it in the InteractiveChange event, it fires after the control gets the keystroke.

Jim,

Still not working when the code is in the InteractiveChange method.

Also, I found further problems with SelStart. Your suggestion of using the form property nSelStart to save the current insertion point works fine, until I insert text into the textbox - then it resets SelStart to zero.

I found a MS Knowledgebase item in a similar vein using a search keyword of 'SelStart' (Q131095). It talks about the NODEFAULT keyword and insertion of text but doesn't appear to help me.

Rex
Rex Toomey
ISD Port Macquarie NSW
Australia

'Inside every older person is a younger person wondering what happened.'
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform