docs

Home All functions Legacy functions Categories

vuClipboardSetText()

vuClipboardSetText(*CSTRING InText,*CSTRING OutText,LONG OutTextLen),SIGNED,PROC,PASCAL,RAW,NAME('vuClipboardSetText')

Purpose

Copies text into the Windows clipboard and returns diagnostic text.

Parameters

Parameter Type Description
InText *CSTRING Text to copy to the Windows clipboard.
OutText *CSTRING Output buffer receiving diagnostic text.
OutTextLen LONG Size of the OutText buffer in bytes.

Return value / error codes

Example (Clarion)

MAP
  MODULE('vuMailKit.dll')
    vuClipboardSetText(*CSTRING InText,*CSTRING OutText,LONG OutTextLen),SIGNED,PROC,PASCAL,RAW,NAME('vuClipboardSetText')
  END
END

rc      LONG
src     CSTRING(256)
outMsg  CSTRING(260)

src = 'Device code: ABCD-EFGH'
outMsg = ''
rc = vuClipboardSetText(src, outMsg, SIZE(outMsg))
IF rc = 1
  MESSAGE('Clipboard updated: ' & outMsg)
ELSE
  MESSAGE('Clipboard failed: rc=' & rc & ' msg=' & outMsg)
END

Notes

Home All functions Legacy functions Categories