Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
cut and paste selected text only
#1
How do I cut and paste only the selected text from a dialog edit field? And not all text like in this section of my script (where e3 is the edit field, case 4 and 5 cut-and-paste all text but case 6 is supposed to cut and paste only the text that was selected):

Code:
Copy      Help
str controls = "3"
str e3
;g1
int r=ShowDialog(dd &sub.DlgProc &controls)
;
sel r
,case 4
,if(!empty(e3))
,,paste e3
,case 5
,if(!empty(e3))
,,paste e3
,,e3.all
,,,,key V           ;; Space
,,goto g1
,case 6
,,,,,

,ret


Messages In This Thread
cut and paste selected text only - by InterestedNewbie - 02-15-2019, 04:04 AM
RE: cut and paste selected text only - by Kevin - 02-15-2019, 04:19 AM
RE: cut and paste selected text only - by Kevin - 02-15-2019, 06:21 PM

Forum Jump:


Users browsing this thread: 5 Guest(s)