FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WINDEV Mobile 2024
→
Call the previous class
Call the previous class
Débuté par HECTOR, 10 oct. 2016 16:48 - 2 réponses
Connectez-vous…
HECTOR
#1
Membre enregistré
26 messages
Posté le 10 octobre 2016 - 16:48
Greetings, anyone know if it's possible make a call from one class to the class that has created it?
Class1 has an instance of Class2, I want to call a method of Class1 from Class2.
Among them there is none inheritance relationship.
Signaler
0
0
Fabrice Harari
#2
Posté le 10 octobre 2016 - 19:50
Hi Hector,
you can pass the original object (of class1) to the object of class 2,
store it there in a dynamic object, and call any of it's methods
Best regards
--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting
Ready for you: WXShowroom.com, WXReplication (open source) and now WXEDM
(open source)
More information on
http://www.fabriceharari.com
Le 10/10/2016 à 8:48 AM, HECTOR a écrit :
Greetings, anyone know if it's possible make a call from one class to
the class that has created it?
Class1 has an instance of Class2, I want to call a method of Class1 from
Class2.
Among them there is none inheritance relationship.
Signaler
0
0
HECTOR
#3
Membre enregistré
26 messages
Posté le 11 octobre 2016 - 09:21
Thanks Fabrice It Works.
I made in Class1 this methods:
Procedure
Create
(
)
oClass.NewClass
(
object
)
Procedure
TestMethod
(
)
Info
(
"ok"
)
And in Class2 this:
Procedure
NewClass
(
oClass1 is dynamic
object
)
oClass1.TestMethod
(
)
So when I call Class1.Create() It shows "ok"
Signaler
0
0
→ Revenir à WINDEV Mobile 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (précédentes versions)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Type de recherche
Uniquement les sujets
Tous les messages
Période de recherche
Date indifférente
Moins d'une heure
Moins de 24 heures
Moins d'une semaine
Moins d'un mois
Moins d'un an
Annuler
Aperçu de votre message
Ajouter une image
Importer une image depuis une URL
Envoyer une image depuis un fichier de votre disque
Déposez ici un fichier ou cliquez sur "Parcourir..."
ou
Annuler
0%
WLangage
SQL
XML, HTML
JAVA, Javascript
Texte