If you want to use any question from the routine's F12 within the automatic routine, you need to fill in the aParam in the fourth parameter of execauto. Example: Local aParam := {} aAdd( aParam, {"MV_PAR01", 2} ) //Display Entry CTB = No aAdd( aParam, {"MV_PAR02", 1} ) //Repeat Reg. No. = Yes aAdd( aParam, {"MV_PAR03", 2} ) //Copy Values = All aAdd( aParam, {"MV_PAR04", 1} ) //Display Details Panel ? = Yes aAdd( aParam, {"MV_PAR05", 2} ) //Book Online ? = No aAdd( aParam, {"MV_PAR06", 2} ) //Group Entries ? = No ... //Rest of execauto segment MSExecAuto({|w,x,y,z| Atfa012(w,x,y,z)},aCab,Nil,4,aParam)
If aParam is not filled in, only what is saved in the profiler of selected user related to this routine is used. |