Hi
Dialog problems...
Based on an example that comes with MS - I want to paste from the clipboard text that can be verified or editted by the user and then submitted to a program....
Dialog>MyDialog
...
Label=verify below - edit if necessary:,5,5
Edit=MyEdit,5,22,230,Type Something Here and Press 'Display'
***instead of the above line Type Something.... I want text from the clipboard to appear here.
Is that possible???
...
EndDialog>MyDialog
many thanks
dialog query.....
Moderators: Dorian (MJT support), JRL
Hi,
Yes:
Dialog>MyDialog
Caption=This is My Dialog
Top=212
Width=252
Left=143
Height=106
Label=Verify below - edit if necessary:,5,5
Edit=MyEdit,5,22,230,%edit%
Button=OK,5,50,52,20,1
EndDialog>MyDialog
GetClipBoard>edit
MidStr>edit,1,100,edit
Show>MyDialog,r
Use GetClipBoard to set the value of the edit box prior to each Show command. I have used MidStr also to limit the amount of data assigned to the edit box (there could be problems in trying to overwhelm it - suppose you had several Mbs of data in the clipboard).
Yes:
Dialog>MyDialog
Caption=This is My Dialog
Top=212
Width=252
Left=143
Height=106
Label=Verify below - edit if necessary:,5,5
Edit=MyEdit,5,22,230,%edit%
Button=OK,5,50,52,20,1
EndDialog>MyDialog
GetClipBoard>edit
MidStr>edit,1,100,edit
Show>MyDialog,r
Use GetClipBoard to set the value of the edit box prior to each Show command. I have used MidStr also to limit the amount of data assigned to the edit box (there could be problems in trying to overwhelm it - suppose you had several Mbs of data in the clipboard).
MJT Net Support
[email protected]
[email protected]