At 02:11 PM 2/28/2008, Mark Lindner wrote:

Using 7.5 for windows

I am trying to take text from a screen in another application and paste it
into a form in Rbase to capture in a variable and then save as a file.

Since I am 7.5 the property command doesn't seem have been implemented, so I
used the cval(clipboardtext), but I am getting part of the text truncated
when I go to paste it into the form.

What I am using now is a form with a variable rich edit field and a button
that just does SET VAR vrtf =(CVAL('CLIPBOARDTEXT')).  The form field is set
to the same variable.

When I click the button it sets the variable, but I am missing text at the
bottom.

The variable is defined as          set var vrtf long varchar = ''   so it
should have more than enough length to hold the document.

When I do a manual paste into a text editor the entire document does appear,
so I do know its on the clipboard.

The end goal is to capture chunks of text from other apps, and then store it
as a file  using Rbase to find it again.  The prime app I was trying to get
the data from does not support an easy export, but will allow a cut and
paste from the screen.


Mark,

Did you know that you can copy and paste any image or text to and
from Windows Clipboard to any designated control on form using the
PROPERTY command?

The following PROPERTY commands are now supported in R:BASE 7.6,
R:BASE 7.6 (C/S:I) and R:BASE Turbo V-8 for Windows:

01. CopyToClipboard
02. CutToClipboard
03. PasteFromClipboard

Here's how:

01. To copy images or text data TO Windows Clipboard

    PROPERTY <ComponentID> CopyToClipboard 'TRUE'
    RETURN

    Supported Form Controls:

    . DB Edit
    . DB Memo
    . DB Image
    . Variable Edit
    . Variable Memo
    . Variable Image

02. To cut images or text data TO Windows Clipboard

    PROPERTY <ComponentID> CutToClipboard 'TRUE'
    RETURN

    Supported Form Controls:

    . DB Edit
    . DB Memo
    . DB Image
    . Variable Edit
    . Variable Memo
    . Variable Image

03. To paste images or text data FROM Windows Clipboard

    -- Example 01
    -- To paste Windows Clipboard BLOB Data into DB/VAR Image Field

    PROPERTY <BLOBControlComponentID> PasteFromClipboard 'TRUE'
    RETURN

    -- Example 02
    -- To paste Windows Clipboard Text Data into DB/VAR Edit/Memo Field

    PROPERTY <EditMemoControlComponentID> PasteFromClipboard 'TRUE'
    RETURN

    -- Example 03
    -- To paste Windows Clipboard BLOB Data into focused DB/VAR Image Field

    PROPERTY RBASE_FORM PasteFromClipboard 'TRUE'
    RETURN

    -- Example 04
-- To paste Windows Clipboard Text Data into focused DB/VAR Edit/Memo Field

    PROPERTY RBASE_FORM PasteFromClipboard 'TRUE'
    RETURN

Imagine the possibilities!

Very Best R:egards,

Razzak.


Reply via email to