If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > Disable key

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-28-05, 05:42
georgipa georgipa is offline
Registered User
 
Join Date: Dec 2002
Location: Madrid - Spain
Posts: 283
Thumbs up Disable key

Hi,

I am development a porgram an informix 4gl, i need disable the key ESC, i have this block in my program.

options
accept key f32
input xxx without defaults

by default the accept key is ESC, but i need disable this key in this screen.

Thank you for yuo help
Reply With Quote
  #2 (permalink)  
Old 01-28-05, 12:07
mjldba mjldba is offline
Registered User
 
Join Date: Dec 2003
Location: North America
Posts: 139
It's been a million years since I've dealt with Informix 4gl, but this is what I recall.

I don't think there's a way to "disable" a key but you can use a built-in Informix function called fgl_lastkey () in the 4gl code to check for the last key pressed.

fgl_lastkey () is designed to be used with the fgl_keyval () function & goes something like this & it would have to be included in the "after field some_field_name" code:

after field some_field_name #validate last key pressed
if fgl_lastkey () = fgl_keyval ("esc") then #if esc was pressed
next field some_field_name #return to last field for valid key stroke
end if


This isn't intended to be a complete solution but perhaps it'll point you in the right direction.

good luck
Reply With Quote
  #3 (permalink)  
Old 01-31-05, 15:02
artemka artemka is offline
Registered User
 
Join Date: May 2004
Location: New York
Posts: 248
From what I remember the Esc key is the default accept key, but I think there is a way to change that. Take a look at the manual there is got to be something in there.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On