Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
APROCINFO( ) Function
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00833543
Message ID:
00835496
Views:
17
>>>Everybody,
>>>Can I use the APROCINFO( ) Function in an Executable?
>>>
>>>When I have the commands in the Executable I get a "Feature is not available." error message.
>>
>>Joseph,
>>What are you trying to accomplish using this function in the run-time? Maybe there is another way.
>>
>>Regards.
>
>Larry,
>What I have is a form that has a list of reports that are available. The list of reports comes from a table and populates a TreeView ActiveX control. Each report is called based on a class name. What I want to do is check to make sure that the class is available. If it is not, then I want to put a messages saying that this report is currently not available.
>
>
>I am using VFP 7.0 SP1.
>Thanks

One suggestion would be to go through each class library and query the string returned from SET('CLASSLIB'). If it is in there, its available. If not, you can attempt to use SET CLASSLIB to add it to the classlib search path. You'll have to trap for error 1 (File ... does not exist) if the library isn't available but that shouldn't be too hard.

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Reply
Map
View

Click here to load this message in the networking platform