on 11-21-2014 11:24 AM
Hello everyone,
I am currently starting to use GuiXT (all components installed) and I have run into a problem with the CopyText function.
My goal is to have the script paste the value from Clipboard into the ZCJI3 screen element F[WBS Element]. I tried using the following:
CopyText ToScreen="F[WBS Element]" -fromclipboard
But I got an error saying:
Please specify a text variable as source or as destination.
I tried to circumvent this problem by first CopyTexting from clipboard to a V[ForHelp] and then setting F[WBS Element] to V[ForHelp] but that did not work either. I cannot get the CopyText function to copy anything from the clipboard no matter what I do.
Any suggestions as to where the problem may be?
Hello Radim,
welcome to the SAP GUI Scripting forum.
I believe that your solution doesn't work, try the following GuiXT script:
Set V[t1] ""
CopyText toText="vText" -fromClipboard
CopyText fromText="vText" toString="t1"
Set F[Funktionsbaustein] "&V[t1]"
In my case this solution works.
Hint: You can find a lot of GuiXT tips and tricks on Gérald Koehns site here.
Cheers
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.