[U2] SB: Character Mode Works Great, GUI Does Not

2013-08-09 Thread Al DeWitt
I am creating a simple screen. Two fields. The Before Process in the Definition defines @KEY, reads @RECORD and loads @RECORD6 into @WORK1 which is displayed on the screen (lines of text). @WORK1 is a multivalue field. The Before Process invokes the text editior. The user is allowed to

[U2] KeyPressed

2013-08-09 Thread Bill Brutzman
With Dynamic Connect... and UniBasic... I need a screen that continuously displays time... as we have an inspection screen where press operators enter fresh data each hour. Something like... loop call *timeOfDay call *displayOtherStuff input

Re: [U2] KeyPressed

2013-08-09 Thread David A. Green
Try a HUSH ON/OFF around your input. David A. Green (480) 813-1725 DAG Consulting -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Bill Brutzman Sent: Friday, August 09, 2013 1:04 PM To: 'U2 Users List' Subject: [U2]

Re: [U2] KeyPressed

2013-08-09 Thread Tom Whitmore
I do agree that INPUTCLEAR should work but since it doesn't, try CLEARDATA. Your example seems to be missing something that may help clarify things but another thought is: loop call *timeOfDay call *displayOtherStuff input thisKey,

Re: [U2] KeyPressed

2013-08-09 Thread Bill Brutzman
Tom: Thanks for writing... but... Once I put in Input junk, 1: The loop waits for a user input and thus stops updating time. --Bill -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Tom Whitmore

Re: [U2] KeyPressed

2013-08-09 Thread Tom Whitmore
Sorry, you need to do: If (thisKey = '1') then Input junk,1: End Tom Whitmore RATEX Business Solutions -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Bill Brutzman Sent: Friday, August 09, 2013 4:22 PM To:

Re: [U2] KeyPressed

2013-08-09 Thread Wjhonson
Bill you need to check the typeahead buffer to see if there is any key to process You can use the INPUTIF command, if the type ahead buffer is empty it will take the ELSE clause You can then do this in a loop with a time display as you wished Also look at the INPUT JUNK, -1 which will look

Re: [U2] KeyPressed

2013-08-09 Thread Allen Egerton
0001 EQUATE TRUE TO 1 0002 EQUATE FALSE TO 0 0003 PROMPT 0004 DUMMY = @(0,0) 0005 * 0006 WAIT = TRUE 0007 LOOP WHILE WAIT 0008 INPUT XYZ, -1 0009 IF (XYZ) THEN 0010 INPUT XYZ,1 ; * Eat the char 0011

Re: [U2] KeyPressed

2013-08-09 Thread McGowan, Ian
Assuming Unidata (because Unibasic) the IN() function is handy (a working example at http://www.pickwiki.com/cgi-bin/wiki.pl?GetLineStack ) Syntax IN( ) Description The UniBasic IN function captures raw data from an input queue or from a terminal. Tip: IN can capture function, arrow, and other

Re: [U2] KeyPressed

2013-08-09 Thread Bill Brutzman
Thanks to those who responded... especially Will... I could not get the hush to behave With a Tiger note on inputIF before I saw Ian's and Allen's response... I whipped up the following. --Bill include BP BASELINE.R9

Re: [U2] SB: Character Mode Works Great, GUI Does Not

2013-08-09 Thread Kevin King
Try setting @ACTION to 2 in addition to setting the @KEY and reading @RECORD. See if that helps.. On Fri, Aug 9, 2013 at 12:07 PM, Al DeWitt adew...@stylmark.com wrote: I am creating a simple screen. Two fields. The Before Process in the Definition defines @KEY, reads @RECORD and loads