Hi Pat, Can you simply assign tEditText to the field after returning from the method *PicturePathSelect*?
That is: *PicturePathSelect* (->tEditText) // choose a pic, copy pathname to tEditText [someTable]someField := tEditText Regards, Jeremy French > On Nov 11, 2018, at 12:39 PM, Pat Bensky via 4D_Tech <[email protected]> > wrote: > > Using v17, Mac > > I have an enterable field on a form. The user can right-click on it and > select an action such as "Select a picture" from a dynamic popup menu. > > The code that runs: > > tEditText:="" > > *PicturePathSelect* (->tEditText) // choose a pic, copy pathname to > tEditText > > *SET TEXT TO PASTEBOARD*(tEditText) > > *INVOKE ACTION*(ak clear) > > *INVOKE ACTION*(ak paste) > If I put a trace on the last line of this code and then step through that > line, then press F5, it works as expected: the picture pathname is copied > into the selected field. > If I don't trace through it, this simply does not work. The field is no > longer the active object and the text hasn't been copied into it. ********************************************************************** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:[email protected] **********************************************************************

