alextro Posted November 12, 2012 Posted November 12, 2012 Hello! is possible to load UniServerModule parameters like: port, title... from a file? Quote
sandro.carrara Posted November 12, 2012 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
Administrators Farshad Mohajeri Posted November 13, 2012 Administrators Posted November 13, 2012 Use below event for such tasks: procedure TUniServerModule.UniGUIServerModuleBeforeInit(Sender: TObject); begin end; Quote
alextro Posted November 13, 2012 Author 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
estrify Posted November 13, 2012 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
alextro Posted November 14, 2012 Author 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
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.