by stecenko » Fri Feb 13, 2015 8:11 pm
You can create a prg called s<prefix>upo
This program is run every time you enter the developer's environment, i.e. when you open the project and when you return from running the app. It is not run in the exe.
In there you can set what ever you need for the form to run.
Here's an example....
*
* set paths that I need
*
DO d:\iProjects9112\common\prgs\addpath WITH "d:\iProjects9112\common\prgs"
DO d:\iProjects9112\common\prgs\addpath WITH "d:\iProjects9112\common\classes"
DO d:\iProjects9112\common\prgs\addpath WITH "d:\iProjects9112\common\reports"
DO d:\iProjects9112\common\prgs\addpath WITH "c:\xFrx"
*
* mimic properties set by login
*
_screen.oApp.oSec.AddProperty('UserData_cUserID', 'richard')
_screen.oApp.oSec.AddProperty('UserData_cFirstName', 'Richard')
_screen.oApp.oSec.AddProperty('UserData_cMiddleName', 'Wayne')
_screen.oApp.oSec.AddProperty('UserData_cLastName', 'Stecenko')
_screen.oApp.oSec.AddProperty('UserData_cMenuPermissionGroup', 'Admin')
I do the above for forms that I might have that are dependent on permissons or where I want to write the user's name, stuff like that. If you don't have the addpath.prg let me know and I'll send it to you.
Richard Stecenko
Interactive Computer Services Inc.
Victoria, British Columbia
204.453.2052