Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SYS(1500) - I can't get it to work
Message
 
 
To
20/05/2005 20:46:35
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01016406
Message ID:
01016425
Views:
8
It could be timing issue. Try this
_CLIPTEXT = "MESSAGEBOX('TEST')" && Command to paste
MODIFY COMMAND myprog NOWAIT && Open a program file
DOEVENTS 
ACTIVATE WINDOW "myprog.prg"
SYS(1500, '_MED_PASTE', '_MEDIT') && Paste menu item 
>Thanks, Sergey. It's working now. Oh, I hate that!
>
>>Jeff,
>>
>>Try
_CLIPTEXT = "MESSAGEBOX('TEST')" && Command to paste
>>MODIFY COMMAND myprog NOWAIT && Open a program file
>>DOEVENTS
>>SYS(1500, '_MED_PASTE', '_MEDIT') && Paste menu item
>>
>>>I've pasted the exact code in the help for sys(1500) and it doesn't work for me - there's no text pasted in. Doesn't work in VFP7 or VFP9 in developer version of VFP or as an EXE.
>>>
>>>From VFP9 Help (and is the same in VFP7):
>>>pre>
>>>_CLIPTEXT = "MESSAGEBOX('TEST')" && Command to paste
>>>MODIFY COMMAND myprog NOWAIT && Open a program file
>>>SYS(1500, '_MED_PASTE', '_MEDIT') && Paste menu item
>>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform