Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WITH object
Message
De
27/11/2019 13:27:45
 
 
À
14/11/2019 08:42:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
01671871
Message ID:
01672104
Vues:
80
>Is there a way to access the WITH object here without re-typing it?
>
>Something like:
>
WITH xyz.abc
>
>    SomeFunction(thisWith, 1, 2)
>
>ENDWITH
>
>
>
>FUNCTION SomeFunction
>LPARAMETERS toWith, tnRow, tnCol
>
>    ? (toWith == xyz.abc)
>    * Displays .T.
>
Add a property to the object class.
PROPERTY MySelf

FUNCTION MySelf_Access
   RETURN m.This
END
Then
WITH xyz.abc

    SomeFunction(.MySelf, 1, 2)

ENDWITH
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform