Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error 1733
Message
From
29/05/2019 14:58:14
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
29/05/2019 13:04:19
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Miscellaneous
Thread ID:
01668856
Message ID:
01668859
Views:
62
>Both fs_frmmaintenance and fs_Header are classes in the same classlib (vcx) file.
>fs_frmMaintenance errors and fs_Header1 not and is created.
>NewObject, to my opion requires newobject(cObjectName, cClassname) and not the cClassLibraryName, VFP will look in the loaded classlibraries (VCX) files for the Class = 2ndParameter.

You're right, the classlibrary parameter is optional, and the help claims it defaults to .vcx - thought I could swear I saw it find a .prg in a project (or on the set("path") perhaps) and not a .vcx when extension was omitted, but then my memory isn't as I remember it.

So we're back at square one. In cases like this, I'd just go to class browser and copy-paste the name of the class from it into the code, because my eyes also fail me sometimes and the obvious typo isn't.

back to same old

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

Click here to load this message in the networking platform