Re: Q: Forms 50 - Format Mask

From: Steve Cosner <stevec_at_zimmer.csufresno.edu>
Date: 29 Apr 1999 05:06:20 GMT
Message-ID: <7g8pcc$o7g$1_at_nntp.csufresno.edu>


I don't know if this would work, but you can try it: First, create a button for the user to use to copy the value. Or else modify the Ctrl-C copy key sequence in the resource file to execute a different trigger (That is not a good idea, since it would affect all your users' forms.)

Back to the button: in the when-button-pressed trigger, make sure the cursor is in the specified field, do a select_all, then copy_region, then go_item to a hidden navigable item and Paste_Region. Edit the contents of the hidden item into whatever form you need, and do a select_all, then cut_region. Finally, go_item back to the visible field on the form. Your user's clipboard should have the contents as you edited them.

Like I said above, you can try this, but I have no idea whether or not it would work.

Steve Cosner

In article <3726a1e8.3665981_at_news.eunet.no>, Ole Bredesen-Vestby <obv_at_ssb.no> wrote:
>Is there a way to copy just the value of a field that has an format
>mask, and not with the format mask.
>
>I have a varchar2-column that is displayed as a text-item, with a
>format mask 999" "999" "999
>
>When the user uses ctrl-c (copy) I want the format of the value in the
>clipborad to be 999999999
>
>Is this possible ?
>
>
>Thanks,
>Ole Bredesen-Vestby
>Statistics Norway (www.ssb.no)
>ole.bredesen-vestby_at_ssb.no
Received on Thu Apr 29 1999 - 07:06:20 CEST

Original text of this message