You either need to select the instance and then do: instID=car(geGetSelSet()) (the car is needed because geGetSelSet returns a list of selected items, and the code I gave only needs the first). Alternatively use the approach suggested by Matthias (his post seems to have vanished, so I assume he deleted it?) which was to use dbFindAnyInstByName to find the instance id if you know what the name of the instance is: instID=dbFindAnyInstByName(geGetEditCellView() "M0") ; whatever the instance name is called is the second argument. Regards, Andrew.
↧