Mike Sue-Ping
Cambridge, Ontario, Canada
Information générale
Catégorie:
Codage, syntaxe et commandes
>>>>>From the command window the following works:
>>>>>
>>>>>PUBLIC oMSDOM AS "Microsoft.XMLDOM"
>>>>>oMSDOM = CREATEOBJECT("Microsoft.XMLDOM")
>>>>>oMSDOM. <--Intellisense kicks in here as expected!!!
>>>>>
>>>>>Now in a prg, type the same thing and you'll see that no intellisense happens.
>>>>>
>>>>>If you try the following from the command window or in a prg, intellisense works:
>>>>>
>>>>>PUBLIC oHTTP AS "Microsoft.XMLHTTP"
>>>>>oHTTP = CREATEOBJECT("Microsoft.XMLHTTP")
>>>>>oHTTP.
>>>>>
>>>>>Why the inconsistency? This happens in both VFP9 SP1 and SP2.
>>>>>
>>>>>Mike
>>>>
>>>>Seems to work OK for me.
>>>
>>>I get the same result as Mike. Weird.
>>
>>Ah, I didn't realize those were too different sets of code (I read this as, "this code works from the command window but doesn't work from a PRG"). The second set of code also fails for me. I wonder if it's related to the fact that there are multiple versions of this COM component?
>
>Seems to me that if it works in the command window, it should work in the prg, or, if it doesn't work in the prg, it shouldn't work in the command window. If it works at all, then I can't see how it could be due to multiple versions.
>
>It's an inconsistency that seems pretty odd.
I agree with you 100%.
Mike
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement