Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pre-DevCon Midnight Madness
Message
De
26/05/1999 14:38:45
 
 
À
26/05/1999 14:05:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Conférences & événements
Divers
Thread ID:
00222607
Message ID:
00223104
Vues:
40
>Hi Ed ---
>
>ROFL!!!!!
>
>>
DO WHILE Fred.drinks.count < 3
>>   oJustOneMore = NEWOBJECT('Tequila.shot')
>>   Fred.drinks.add(oJustOneMore)
>>   oJustOneMore = NULL
>>ENDDO
>>SEEK floor
>
>Here's the Koziol variant:
>
>****Koziol.Drinks_Assign
>LPARA vJustAnother
>IF vJustAnother > THIS.DrinkMax
>   THIS.BlowsChunks()
>ELSE
>   THIS.Drinks=vJustAnother
>ENDIF
I like it; it makes it easy to accept shot objects of any type! But the code following the BlowChunks() method is very messy, and requires garbage collection by a third-party product, or the Koziol object won't like the environment when it reinstantiates!
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
Répondre
Fil
Voir

Click here to load this message in the networking platform