Page 1 of 1
Setting the "server name' in VLF
Posted: Thu Aug 03, 2017 2:26 am
by dhnaigles
If I am doing a private connect and I am choosing from the servers defined in VLF, how can I replace the "Server Name" text at the bottom of the VLF with the server info I am connecting to? It always says "Local".
Re: Setting the "server name' in VLF
Posted: Thu Aug 03, 2017 7:41 am
by MarkD
Try #FIM.uStatusManager.uConnectId := "xxxxxxxxxxxx"
Re: Setting the "server name' in VLF
Posted: Thu Aug 03, 2017 11:41 am
by dhnaigles
Mark
#FIM is not available in the avPrivateConnect routine. Any alternatives?
Re: Setting the "server name' in VLF
Posted: Thu Aug 03, 2017 12:14 pm
by MarkD
Try this global declaration in your reusable part:
Define_Com Class(#vf_sy150) Name(#FIM_MainWindow) Scope(*Application) Reference(*dynamic)
then use #FIM_MainWindow instead of #FIM.
PS: There might be a timing issue with the status bar getting set up, in which case try moving the #FIM_MainWindow declaration into your system IIP and set the connection name in your avMainWindowReady method.