I'm working on a set of scripts that find a set of records, step throught the found records, parse out some information and send the parsed information to another script. When the external script ends I have to reselect the layout for the first script, and reposition my record pointer to the record I was at prior to starting the external script. See the example below.

Is there a way to call an external script and have FM save the current layout and record with out having to do it manually as in the script segement? My attempts at doing this with out the restoration of the layout, find and record pointer end up with the external script only being called once.
Go To Layout[#34 Full list)
Perform Find[Restore]
Go to Record/Requiest/page[First]
Loop
   Set Variable[$record; Value:Get(recordNumber)]
   Set Variable[$name;Value:table::Name]
   Set Variable[$info;Value:tab;e::info]
   Set Varialbe[$$G_name_info;Value:$name & " " & $info]
   Perform Script["#261 New_record";Parameter:$$G_name_info]
   Go to Layout(#34 Full list)
   Perform Find[restore]
   Go to record/request/page[no dialog;$record]
   Go to record/request/page[Next;exit after last]
end loop;


Thanks
Bruce

Reply via email to