Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Object question
Message
From
13/07/2000 10:55:53
Brad Stickley
Parker Pneumatic Div. North America
Wake Forest, North Carolina, United States
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00391790
Message ID:
00391822
Views:
23
Nigel,

I am not sure what you mean. Should I add an olecontrol to the form from the maiframe session? There is not an activeX that ships with the software.

I added a ole that is the data session. Do you have any suggestions on what the code should look like to activate it in the form init?

thanks in advance.


>Place the object as a property on your form. Maybe the Init of the form creates the session and the buttons update different areas of the object.
>
>>I have an object opens with the click of a button to open a mainframe session in the background. I am scrapping data from the screen to the clipboard and then pasting it to a text box on the form.
>>
>>When the object is opened this way, is there a way that I could use the same object for other button clicks?
>>
>>here is the code for opening the object
>>
>>oextra=createobject("Extra.system")
>>wait nowait timeout 1
>>osession=oExtra.sessions.open("C:\program files\E!PC\sessions\a.edp")
>>*osession.visible=.t.
>>wait nowait timeout 5
>>oscreen=osession.screen
>>
>>oscreen.WaitHostQuiet [1000]
>>oscreen.sendkeys("A")
>>oscreen.WaitHostQuiet [100]
>>oscreen.sendkeys("")
>>oscreen.WaitHostQuiet [1000]
>>oscreen.sendkeys("fh21798")
>>oscreen.WaitHostQuiet [500]
>>oscreen.sendkeys("")
>>oscreen.WaitHostQuiet [500]
>>oscreen.sendkeys("ti5633")
>>oscreen.WaitHostQuiet [500]
>>oscreen.sendkeys("")
>>oscreen.WaitHostQuiet [1000]
>>oscreen.sendkeys("sp2a")
>>oscreen.WaitHostQuiet [100]
>>oscreen.sendkeys("")
>>oscreen.WaitHostQuiet [1000]
>>oscreen.sendkeys("h")
>>oscreen.WaitHostQuiet [500]
>>oscreen.sendkeys("")
>>oscreen.WaitHostQuiet [1000]
>>oscreen.sendkeys("b310bc553")
>>oscreen.WaitHostQuiet [100]
>>oscreen.sendkeys("")
>>oscreen.WaitHostQuiet [1000]
>>Q= OSCREEN.SELECT(3,41,3,60)
>>q.copy()
>>
>>
>>This opens a mainframe window and strips text to the clipboard.
>>I would like to click another button that would enter in a new part number and strip more data from the screen again.
>>
>>I guess the question is how do I reference the object again from another command?
>>
>>Thanks,
>>Brad.
He is there and He is not Silent.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform