Which of the lines I marked should be used for more application performance?
Is there any difference between them in terms of performance?
- Code: Select all Expand view RUN
- #include "Fivewin.ch"
[b]STATIC oDBServer <--- for sql[/b]
FUNCTION Main
LOCAL oApp
oApp := MyApp():New():Run()
RETURN nil
CLASS MyApp FROM TMdiFrame
[b]DATA oDBServer <--- for sql[/b]
ENDCLASS
-----------------------------
CLASS TWindow
.....
[b]DATA oParent <---[/b]
.....
ENDCLASS
-------- OR ---------
[b]__objAddData( oMain, "oModule" ) <---[/b]
oMain:oParent := oModule
Best regards,
Ertan