Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SET LIBRARY TO in subclassed textbox
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00678034
Message ID:
00678050
Views:
21
Robert,

SET LIBRARY need only be done once. Are you sure that you

1) have the function name spelled correctly?
2) Are not issuing a SET LIBRARY TO which would unload all libraries?
3) Are using ADDITIVE on all other instances of SET LIBRARY TO ...
4) Are not using a RELEASE LIBRARY command

You can check the current library functions in memory at anytime by looking at the bottom of the DISPLAY STATUS output.

>I'm using a sub-classed text box control to create a textbox that will save the text to the registry when its parent form unloads and retrieve the text from registry when the textbox loads later. In order to do this, I need to use the FOCUS.FLL library to gain access to the 'REG_' functions. The only problem is, SET LIBRARY TO FOCUS.FLL seems to work only within the event I coded. If I issue SET LIBRARY TO in the INIT event (to use REG_ function to retrieve text from registry) VFP returns an error when trying to use REG_ function in DESTROY event with ERROR "File reg_createvalue.prg does not exist". Does SET LIBRARY not persist across the whole life of the control? Do I have to issue SET LIBRARY for every piece of event code?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform