Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Can you do a SendKeys to a FieldList field number?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
Keith Malek

New User


Joined: 06 Feb 2014
Posts: 2
Location: Canada

PostPosted: Tue Feb 11, 2014 12:09 am    Post subject: Can you do a SendKeys to a FieldList field number?
Reply with quote

Hello All,

I have a question that I can’t seem to find an answer for.
I’ve been programming for IBMPersonal Communications from VBA i.e.

autECLOIAObj.WaitForInputReady
autECLPSObj.SetCursorPos 6, 19
autECLOIAObj.WaitForInputReady
autECLPSObj.SendKeys "Hello World"

My question is, is there a way of sending text to a field number i.e.

autECLPSObj.autECLFieldList.Refresh(1)
If (Not autECLPSObj.autECLFieldList.Count = 0 ) Then
If ( autECLPSObj.autECLFieldList(1).Numeric ) Then
' do whatever
Endif
Endif

So something like (autECLPSObj. SendKeys.autECLFieldList(1) "Hello World") that way it sends "Hello World" to field number 1 in the presentation space.

I’m not sure If I am explaining it well or not. Please let me know.

Thank you in advance.
Back to top
View user's profile Send private message

Ed Goodman

Active Member


Joined: 08 Jun 2011
Posts: 556
Location: USA

PostPosted: Tue Feb 11, 2014 2:19 am    Post subject:
Reply with quote

Do you have a good definition of what is returned from teh expression "autECLFieldList(1)"?

You MAY have to find a way to extend that reference until it returns a field object, like autECLPSObj. SendKeys.(autECLPSObj.autECLFieldList(1)) or something similar.

A lot of it depends on the object definitions. Do you have alink to the PCOMM object model library?
Back to top
View user's profile Send private message
Ed Goodman

Active Member


Joined: 08 Jun 2011
Posts: 556
Location: USA

PostPosted: Tue Feb 11, 2014 2:23 am    Post subject:
Reply with quote

A-ha!

The fieldlist object has a SetText method...

' Build the list and set the first field with some text
autECLPSObj.autECLFieldList.Refresh(1)
autECLPSObj.autECLFieldList(1).SetText("IBM is a cool company")
Back to top
View user's profile Send private message
Keith Malek

New User


Joined: 06 Feb 2014
Posts: 2
Location: Canada

PostPosted: Tue Feb 11, 2014 2:30 am    Post subject:
Reply with quote

Cool. Thank you all for your help.
Back to top
View user's profile Send private message
Ed Goodman

Active Member


Joined: 08 Jun 2011
Posts: 556
Location: USA

PostPosted: Tue Feb 11, 2014 2:41 am    Post subject:
Reply with quote

If you were dead set to use Sendkeys, like if it's the only way to send special characters or something:

Use the FieldList object to get teh Row/Col of the field you want, then use them in the presentation space calls:

Dim Row as Long
Dim Col as Long

Row = autECLPSObj.autECLFieldList(1).StartRow
Col = autECLPSObj.autECLFieldList(1).StartCol


autECLPSObj.SendKeys "IBM is a really cool company", Row, Col

OR

autECLPSObj.SetCursorPos Row, Col
autECLPSObj.SendKeys "IBM is a really cool company"


OR

autECLPSObj.SetText("Hello World", Row, Col)


However, the manual warns that SetText can NOT send those PF Keys like [enter] and [PF1], so you probably want to use that Sendkey method.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Increment number for every group of r... srajendran2 DFSORT/ICETOOL 7 Thu Nov 09, 2017 10:31 pm
This topic is locked: you cannot edit posts or make replies. Incrementing current time field by 30... arunsoods DFSORT/ICETOOL 11 Thu Oct 26, 2017 3:22 pm
No new posts sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts Partial color change of a field in CI... waseem0424 CICS 5 Fri Sep 29, 2017 7:56 pm
No new posts Remove leading spaces from numeric field rexx77 SYNCSORT 6 Wed Sep 06, 2017 2:15 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us