@Command( [EditInsertFileAttachment]) and insertion point

Is there a way to control the insertion point when using:@Command([EditGotoField]; “ProjectDescription”);

@Command( [EditInsertFileAttachment])

in a button?

I would like it to function like the Attach toolbar button.

Thanks

David

Subject: @Command( [EditInsertFileAttachment]) and insertion point

I don’t understand your problem. I created an action button on a form and used your exact code and the file attachment was put into the field. Are you saying that’s not working for you, or are you wanting to put the file attachment somewhere in the richtext field other than at the beginning of the field?

Subject: RE: @Command( [EditInsertFileAttachment]) and insertion point

Somewhere other than the beginning of the field. Ideally, it would be inserted where the cursor was. I do not want the user to have to cut and paste the attachment after it is attached.

Subject: RE: @Command( [EditInsertFileAttachment]) and insertion point

You can use the EditUp, EditRight, EditDown… commands to move the cursor inside of the field, but I don’t know of a way to get the current cursor position.