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 How to include a particular field val... sakrat DFSORT/ICETOOL 8 Fri Apr 06, 2018 8:27 pm
No new posts Extract the records with a PD field's... sudhakar84 DFSORT/ICETOOL 11 Mon Apr 02, 2018 7:26 pm
No new posts Searching a table for the field name? socker_dad COBOL Programming 8 Sat Mar 31, 2018 2:57 am
No new posts Repeat Sequence Number Until change i... rahulabvp DFSORT/ICETOOL 6 Thu Mar 29, 2018 12:51 pm
No new posts add sequence number for duplicate rec... SRUTHI DRAVIDAMANI COBOL Programming 11 Thu Feb 22, 2018 5:37 pm

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