Capsol,
The Main sub is the entry point to the application. That part of code is
modified by Xailer's IDE to establish the main form and open it when the
applications starts. This module should be considered as a read only module
and I suggest you put your initialization code on the Main form OnInitialize
event.
BTW, a safe way to modify the startup module is creating a function below
IDE's code and make a simple call to that function before the call to the
Show() method. Be aware that you must pass a dummy argument to that
function in order to avoid the IDE modification:
Procedure Main()
Application:cTitle := "DbfEditor"
MyInit( "whatever" )
TFrmMain():New( Application ):Show()
Application:Run()
Return
Function MyInit()
SET DELETED ON
return nil
Regards,
--
Ignacio Ortiz de Zúñiga
http://www.xailer.com
"Capsol Coder" <
nick__NOSPAM__@capsol.com.au> escribió en el mensaje
news:[email=
45c93b25@news.xailer.com...]
45c93b25@news.xailer.com...[/email]
> G'day xailer,
>
> Why does xailer rewrite the Main sub all the time.?
> How do I get my stuff into main?
>
> Regards,
> Leigh.
>