I’m trying to get a hotspot button to act asa “shortcut” to File/Attach-menu selection.
Is there any way to do this, as I’d rather
just call the “menu-function” than start mimicking the functionality, especially as it includes working with rich text fields?
Subject: Is there a way of using menu functions in actions?
Try this@Command([EditDocument];“1”);
@Command([EditGotoField];“”);
@Command([EditInsertFileAttachment])
That is even better as the menu function.
Cheers
cti
Subject: Is there a way of using menu functions in actions?
I’m not sure if this is what you want but I use the following code to insert photos onto a form:
@Command([EditGotoField]; “photo” );
_path :=@Prompt([LocalBrowse] : [NoSort]; “Select Photo” ; “Browse for the photograph”; “C:\Photo Archive”; “”; 3);
_ext :=@RightBack(_path;“.” ) ;
_type := @If (_ext = “gif”;“GIF Image”; _ext = “bmp”; “BMP Image”; _ext = “jpg”; “JPEG Image”; _ext = “jpeg”; “JPEG Image”; “”);
@If(_path!=“”;
@Command([FileImport]; _type; _path);
@Success)
Alternatively try
@Command( [EditGotoField] ; fieldName );
@Command( [EditInsertFileAttachment] ; file ; compress )
Subject: RE: Is there a way of using menu functions in actions?
Thanks!
That @Prompt([LocalBrowse]; ) was just what I was looking for!