In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

Main module explanation

Xailer professional forum in English
Responder
Giuseppe Bogetti
Mensajes: 281
Registrado: Vie Ago 04, 2006 4:58 pm

Main module explanation

Mensaje por Giuseppe Bogetti »

Hi,
I have modified the main function as follows:
Procedure Main()
IF ( Login() )
// Inizializzazione
Application:cTitle := "xNovaTools"
TxNovaTools():New( Application ):Show()
Application:Run()
// Chiusura
LogOut() <------ this line is alway removed when I save the file
ENDIF
Return
Login() perform .ini and .log checking for the application
LogOut() perfom closing of .log files and so on.
Why Login() remains and LogOut() is removed from source by the IDE ?
Do I have to move the LogOut() code to the OnClose method for the main form
?
--
Best regards,
Giuseppe Bogetti
B.G. Soft
Cuneo - Italy
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9440
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

Main module explanation

Mensaje por ignacio »

Guissepe,
That part of code is regenerated continuously by the IDE and surely is
mistaken the funtion whits its own generated code.
Please see if passing a dummy value to the funcion fixes the problem, for
example:
LogOut( "dummy" )
Regards,
"Giuseppe Bogetti" <orangesocks@bgsoft.it> escribió en el mensaje
news:12ne6f8hlyr85$[email=.u5t58l6xpar9.dlg@40tude.net...].u5t58l6xpar9.dlg@40tude.net...[/email]
> Hi,
>
> I have modified the main function as follows:
>
> Procedure Main()
>
> IF ( Login() )
> // Inizializzazione
> Application:cTitle := "xNovaTools"
> TxNovaTools():New( Application ):Show()
> Application:Run()
> // Chiusura
> LogOut() <------ this line is alway removed when I save the file
> ENDIF
>
> Return
>
> Login() perform .ini and .log checking for the application
> LogOut() perfom closing of .log files and so on.
>
> Why Login() remains and LogOut() is removed from source by the IDE ?
>
> Do I have to move the LogOut() code to the OnClose method for the main
> form
> ?
>
> --
> Best regards,
>
> Giuseppe Bogetti
> B.G. Soft
> Cuneo - Italy
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
InvalidAccount
Mensajes: 53
Registrado: Vie Mar 04, 2005 9:58 am

Main module explanation

Mensaje por InvalidAccount »

Guissepe,
That part of code is regenerated continuously by the IDE and surely is
mistaken the funtion whits its own generated code.
Please see if passing a dummy value to the funcion fixes the problem, for
example:
LogOut( "dummy" )
Regards,
"Giuseppe Bogetti" <orangesocks@bgsoft.it> escribió en el mensaje
news:12ne6f8hlyr85$[email=.u5t58l6xpar9.dlg@40tude.net...].u5t58l6xpar9.dlg@40tude.net...[/email]
> Hi,
>
> I have modified the main function as follows:
>
> Procedure Main()
>
> IF ( Login() )
> // Inizializzazione
> Application:cTitle := "xNovaTools"
> TxNovaTools():New( Application ):Show()
> Application:Run()
> // Chiusura
> LogOut() <------ this line is alway removed when I save the file
> ENDIF
>
> Return
>
> Login() perform .ini and .log checking for the application
> LogOut() perfom closing of .log files and so on.
>
> Why Login() remains and LogOut() is removed from source by the IDE ?
>
> Do I have to move the LogOut() code to the OnClose method for the main
> form
> ?
>
> --
> Best regards,
>
> Giuseppe Bogetti
> B.G. Soft
> Cuneo - Italy
Giuseppe Bogetti
Mensajes: 281
Registrado: Vie Ago 04, 2006 4:58 pm

Main module explanation

Mensaje por Giuseppe Bogetti »

Il Wed, 30 Nov 2005 16:15:37 +0100, Ignacio Ortiz de Zúñiga ha scritto:
> Guissepe,
>
> That part of code is regenerated continuously by the IDE and surely is
> mistaken the funtion whits its own generated code.
>
> Please see if passing a dummy value to the funcion fixes the problem, for
> example:
>
> LogOut( "dummy" )
>
> Regards,
>
> "Giuseppe Bogetti" <orangesocks@bgsoft.it> escribió en el mensaje
> news:12ne6f8hlyr85$[email=.u5t58l6xpar9.dlg@40tude.net...].u5t58l6xpar9.dlg@40tude.net...[/email]
>> Hi,
>>
>> I have modified the main function as follows:
>>
>> Procedure Main()
>>
>> IF ( Login() )
>> // Inizializzazione
>> Application:cTitle := "xNovaTools"
>> TxNovaTools():New( Application ):Show()
>> Application:Run()
>> // Chiusura
>> LogOut() <------ this line is alway removed when I save the file
>> ENDIF
>>
>> Return
>>
>> Login() perform .ini and .log checking for the application
>> LogOut() perfom closing of .log files and so on.
>>
>> Why Login() remains and LogOut() is removed from source by the IDE ?
>>
>> Do I have to move the LogOut() code to the OnClose method for the main
>> form
>> ?
>>
>> --
>> Best regards,
>>
>> Giuseppe Bogetti
>> B.G. Soft
>> Cuneo - Italy
Fixed, thanks !
--
Best regards,
Giuseppe Bogetti
B.G. Soft
Cuneo - Italy
Giuseppe Bogetti
Mensajes: 281
Registrado: Vie Ago 04, 2006 4:58 pm

Main module explanation

Mensaje por Giuseppe Bogetti »

Il Wed, 30 Nov 2005 16:15:37 +0100, Ignacio Ortiz de Zúñiga ha scritto:
> Guissepe,
>
> That part of code is regenerated continuously by the IDE and surely is
> mistaken the funtion whits its own generated code.
>
> Please see if passing a dummy value to the funcion fixes the problem, for
> example:
>
> LogOut( "dummy" )
>
> Regards,
>
> "Giuseppe Bogetti" <orangesocks@bgsoft.it> escribió en el mensaje
> news:12ne6f8hlyr85$[email=.u5t58l6xpar9.dlg@40tude.net...].u5t58l6xpar9.dlg@40tude.net...[/email]
>> Hi,
>>
>> I have modified the main function as follows:
>>
>> Procedure Main()
>>
>> IF ( Login() )
>> // Inizializzazione
>> Application:cTitle := "xNovaTools"
>> TxNovaTools():New( Application ):Show()
>> Application:Run()
>> // Chiusura
>> LogOut() <------ this line is alway removed when I save the file
>> ENDIF
>>
>> Return
>>
>> Login() perform .ini and .log checking for the application
>> LogOut() perfom closing of .log files and so on.
>>
>> Why Login() remains and LogOut() is removed from source by the IDE ?
>>
>> Do I have to move the LogOut() code to the OnClose method for the main
>> form
>> ?
>>
>> --
>> Best regards,
>>
>> Giuseppe Bogetti
>> B.G. Soft
>> Cuneo - Italy
Fixed, thanks !
--
Best regards,
Giuseppe Bogetti
B.G. Soft
Cuneo - Italy
Responder