alextro Posted November 12, 2012 Share Posted November 12, 2012 Hello! is possible to load UniServerModule parameters like: port, title... from a file? Quote Link to comment Share on other sites More sharing options...
sandro.carrara Posted November 12, 2012 Share Posted November 12, 2012 Hello! is possible to load UniServerModule parameters like: port, title... from a file? Like all the properties of all Delphi components. I use something like this procedure TUniServerModule.FirstInit; var file_ini: tinifile; begin InitServerModule(Self); file_ini := tinifile.create(UniServerModule.filesfolderpath + 'go.cfg'); port := file_ini.readinteger('goweb', 'porta_go_web', 8077); extroot := file_ini.readstring('goweb', 'cartella_extjs', '[ext]\'); file_ini.free; end; I can't change the standard value if I use the standalone server. Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted November 13, 2012 Administrators Share Posted November 13, 2012 Use below event for such tasks: procedure TUniServerModule.UniGUIServerModuleBeforeInit(Sender: TObject); begin end; Quote Link to comment Share on other sites More sharing options...
alextro Posted November 13, 2012 Author Share Posted November 13, 2012 Thanks, but is possible to list files in a specific folder using mask like 'some*.txt', TFilelistbox doesn't work! Quote Link to comment Share on other sites More sharing options...
estrify Posted November 13, 2012 Share Posted November 13, 2012 Thanks, but is possible to list files in a specific folder using mask like 'some*.txt', TFilelistbox doesn't work! Use FindFirst, FindNext and FindClose commands for this. Please take a look to the URL (there is a simple example of usage of these commands). To store filenames, use a simple TStringList. Regards, Quote Link to comment Share on other sites More sharing options...
alextro Posted November 14, 2012 Author Share Posted November 14, 2012 Use FindFirst, FindNext and FindClose commands for this. Please take a look to the URL (there is a simple example of usage of these commands). To store filenames, use a simple TStringList. Regards, Thanks to all! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.