Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Wikiwatch #21: FoxTetris
Message
De
31/08/2001 08:55:35
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
31/08/2001 08:46:06
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00551248
Message ID:
00551333
Vues:
28
>That was cool... How does it run though? IOW, why does the RETURN in the first few lines of code below not kick you out before it gets going? I'm sure it has to do with my lack of understanding regarding CreateObject, but I'm curious to know...
>
>Renoir
>
>
>PUBLIC ff
>ff = CreateObject('frm')
>ff.visible = .T.
>
>RETURN
>
>#DEFINE tetris 4
>
This question baffled me when you posted it. However:

The variable "ff" is public, therefore it doesn't go out of scope. A class will usually be destroyed when the corresponding variable goes out of scope.

RETURN could just as well be omitted. The program would RETURN anyway, I believe.

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform