Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pre-DevCon Midnight Madness
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Conférences & événements
Divers
Thread ID:
00222607
Message ID:
00223394
Vues:
26
>>>reading all the posts in this thread I think the correct code is
>>>
>>>LOCAL loParty,loDrinkingParty,loPerson,loDrink
>>>
>>>loParty=NEWOBJECT('Devcon')
>>>loDrinkingParty=loParty.GetCrazyUTFolks()
>>>FOR EACH loPerson IN loDrinkinParty.People
>>>   DO WHILE !loPerson.Dropped()
>>>      loDrink=NEWOBJECT(loPerson.FavouriteDrink)
>>>      loPerson.Abuse(loDrink)
>>>   ENDDO
>>>ENDFOR
>>>
>>>
>>Hi Arnon,
>>
>>First, ROFL!
>>
>>I must admit I'd never thought about using the .Abuse method here, since it too often leads to the .LoseYourCookies event being fired. But, under circumstances, I think you're right.:-)
>
>George, I always believed that it was the Substance.Abuse method which first triggers a .LostFocus, and didn't consistently release a cookies object. Plus, I always thought of .LoseYourCookies as a method, not an event.

It depends on the value of .MaxDrinks. This value is different in each instance of loPerson, and can be dependent on the settings of the .Hieght and .Weight properties, as well as being affected whether or not the .SolidFoodIngested() method is called.:-)

As to whether or not .LoseYourCookies is a method or event. In most instances of loPerson it is an event. Unfortunately, in some, it is a method. I don't want to go there, however.

>I'll defer to your superior knowledge of the subject! I don't have as much detailed experience with the low-level API here...

LOL
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform