Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CreateObject() vs. NewObject() functions
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01367158
Message ID:
01367430
Vues:
8
Hi Naomi
>>
>>>What FILE("myVcxFile.VCX") returns?
>>
>>*loODBC = NEWOBJECT("cODBC", "C:\VSO3\Common\Libs\cVSONoSCNonVisualUtilities.vcx")
>>MESSAGEBOX(LOWER("C:\VSO3\Common\Libs\")$LOWER(SET("PATH")))
>>MESSAGEBOX(LOWER("cVSONoSCNonVisualUtilities.vcx")$LOWER(SET("classlib")))
>>MESSAGEBOX(FILE("cVSONoSCNonVisualUtilities.vcx"))
>>loODBC = NEWOBJECT("cODBC", "cVSONoSCNonVisualUtilities.vcx")
>>
>>.T.
>>.T.
>>.F.
>>
>>UPPER() LOWER() to FILE() did not matter.
>
>If FILE returns .F. it means that this file is not in the path. Verify the spelling of the classlibrary and that the file is where it is supposed to be.

But then why would the first line (now commented out) work, I have just copy pasted for the messagebox()es
Regards
Bhavbhuti
___________________________________________
Softwares for Indian Businesses at:
http://venussoftop.tripod.com
___________________________________________
venussoftop@gmail.com
___________________________________________
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform