Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Conversion problems with help ID's
Message
 
To
25/08/1997 16:39:36
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00046784
Message ID:
00046828
Views:
25
>I have a large app that has been converted from 3.0b to 5.0a and I'm having a problem with help id's
>
>We have created a base class for buttons derived from commandbutton that is used for all buttons in the application. In this class we've set the HelpContextID to =THISFORM.HelpContextID. That way when the button has focus and someone presses the F1 key, they should get help for the containing form. This worked fine in 3.0, but it fails in 5.0a.
>
>When the instantiated button control inherits the default HelpContextID from the base class, pressing F1 produced the error "Expression evaluated to an ilegal value". If I override the default setting in the instantiated button control and replace it with the exact same text =THISFORM.HelpContextID, it works ok. If I go back in and "reset to default" using the right click on the property in the designer, it will fail again.
>
>Anyone run intor this before or have any idea how to solve it. I don't want to override every single control in our application to place this text in there.
>Thanks

Bob, I haven't seen tried this with the HelpContextID, but I have seen the identical problem when setting input masks on classed textboxes. Same code, wouldn't work unless it was in the actual textbox. This was corroborated in Visual MaxFrame which provide a workaround for the input mask problem.

Don't have an answer, but at least you know you aren't crazy :-)

Barbara
Barbara Paltiel, Paltiel Inc.
Previous
Reply
Map
View

Click here to load this message in the networking platform