Página 1 de 1

Main module explanation

Publicado: Mié Nov 30, 2005 1:22 pm
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

Main module explanation

Publicado: Mié Nov 30, 2005 4:15 pm
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

Main module explanation

Publicado: Mié Nov 30, 2005 4:15 pm
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

Main module explanation

Publicado: Mié Nov 30, 2005 4:52 pm
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

Main module explanation

Publicado: Mié Nov 30, 2005 4:52 pm
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