FOROS PROFESIONALES
WINDEV
,
WEBDEV
y
WINDEV Mobile
Inicio
|
Mensajes recientes
|
Conéctese...
|
Desconectar
|
Español
Inicio
→
WINDEV Mobile 2024
→
Call the previous class
Call the previous class
Iniciado por HECTOR, 10,oct. 2016 16:48 - 2 respuestas
Conéctese…
HECTOR
#1
Miembro registrado
26 mensajes
Publicado el 10,octubre 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.
Informar
0
0
Fabrice Harari
#2
Publicado el 10,octubre 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.
Informar
0
0
HECTOR
#3
Miembro registrado
26 mensajes
Publicado el 11,octubre 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"
Informar
0
0
→ Volver a WINDEV Mobile 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (versiones precedentes)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Búsqueda Tipo
Sólo temas
Todos los mensajes
Periodo Buscar
Cualquier fecha
Última hora
Última 24 horas
Última semana
Último mes
Último año
Cancelar
Vista previa del mensaje
Añadiendo una imagen
Importar una imagen desde una URL
Enviar una imagen desde un archivo de su disco
Arrastrar un archivo o click en "Examinar..."
o
Cancelar
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Texto