Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can anybody teach me ... Please !!!
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00214266
Message ID:
00214403
Vues:
32
>>Wanna really get ill? The following proves that AMEMBERS() doesn't work with SET STEP ON correctly - it ignores the two read-only properties. Try this with a glass of Bromo nearby:
>>
>>oShellObj = CREATEOBJ('Shell.Application')
>>?type('oshellobj') && Returns "O"
>>local x(1) && Creates single element array
>>a= oShellObj.Parent
>>a=oSShellObj.Application
>>y = amembers(x,oshellobj,1)
>>?y && = 23!!!!
>>?alen(x,1) && = 23!!!!!!
>>?alen(x,2) && = 2
>>?alen(x) && = 46 !!!!!!!!!!!!!!!!!!!
>>
>>
>>and if you examine the array, Application and Parent, both properties, appear from off-stage. Something's broke...
>
>Well, something definetly not right here, 'cause I only get the application, and parent back (y = 2). That's with STEP=ON or omitted in the config. I give! Three of us getting totally different results. Maybe I ought to consider a job in the Food Services Industry.< g >

Step through the code a line at a time in the debugger.

As far as FSI employment, as long as I don't need to use AMEMBERS() to get paid, I'll be happy to submit my resume for consideration!
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform