Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

numeric representation of reflection enumerated constants? rcIbmPf2Key

Status
Not open for further replies.

rtgreen79

Programmer
May 18, 2009
4
US
I am trying to communicate with my IBM3270 session via Powerbuilder. I have been able to use the TransmitTerminalKey() and TransmitANSI() functions within the application. I got the numeric values of the Enter and Clear key from various web postings. I have not seen anyone passing the PF2 key. I tried the reflection constant but it does not appear to work within powerbuilder.

Does anyone know the numeric representation of the constant enumeration rcIbmPf2Key? Is there somewhere that lists these values?

Any assistance is appreciated.

// lole_session.SendKeys("<Pf2>")
Fails -->lole_session.TransmitTerminalKey("rcIbmPf2Key")

works -->lole_session.TransmitTerminalKey(289) // Enter
works -->lole_session.TransmitTerminalKey(277) // Clear
 
works -->lole_session.TransmitTerminalKey(379) // Pf2
works -->lole_session.TransmitTerminalKey(405) // Tab
works -->lole_session.TransmitTerminalKey(289) // Enter
works -->lole_session.TransmitTerminalKey(277) // Clear

You can use the Reflection VB interface to get the codes.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top