Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get listing of loaded classes. other than set('classlib'
Message
From
18/06/2007 09:55:35
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01233647
Message ID:
01233916
Views:
16
>>>I have looked all over and the only command I can find to list the currently loaded VCX classes is set('classlib') which just outputs a string. Is there any function that puts them in an array like adlls(). They have array functions for everything else. I want to plug it into the error trap prg before I upload it.
>>
>>
n=ALINES(aa,SET("classlib"),1,",")
>>
>>You may parse the array to check whether the alias differs from the filename (and then yank anything beyond the ALIAS word), and to replace the full paths with relative paths.
>
>Dragan,
>thanks for the amazing line of code. I knew alines() existed but had never really looked at it. I put it in my error trapping prg that I just uploaded to the download area.

The nice thing about Fox is that it has hundreds of functions - and the more you use them, the easier it gets. The bad thing is that it has hundreds of functions and it doesn't get easier until you get used to them ;).

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform