Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VCX PRG COM confusion...
Message
De
03/08/2000 15:43:18
 
 
À
03/08/2000 15:38:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00400573
Message ID:
00400670
Vues:
16
And just to prove it the other way...

After the idea of throwing this computer out the window left my mind I do a 'close all' and 'clear all'... and run it as a regular vfp object, the regular object still works...

So then I shut down VFP... And reload VFP

And run it as a regular object... still works...


So I shut down VFP and reload VFP...

And run it as a COM object... And I get the same error "f:\wrs\data\wrs.dbc" does not exist...



>>Yeah, there's a lot of stuff that you won't catch as a regular class or prg that you will see in a COM object. This shouldn't be one of them, IMNSHO, but...
>>Does that directory exist, BTW?
>
>...uh... yeah it does exist... this is unbelievable...
>
>I go to the command window and:
>
>Set procedure to c:\testcom\dataobj2.prg
>odataobj2 = createobject('dataobj2')
>odataobj2.load_data
>
>And everything works great...
>
>Then I compile the project.. Issue a "Clear all" and a "Close all" and go to the command window and:
>
>odataobj2 = createobject('dataobj2.dataobj2')
>odataobj2.load_data
>
>And I get 'f:\wrs\data\wrs.dbc' does not exist!!!
>
>Im issueing in the 'load_data' method... "OPEN DATABASE f:\wrs\data\wrs.dbc shared"
>
>I just dont GET IT!!!
>
>This has got to be a BUG!!!
>
>
>Mike
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform