RE: [U2] @VARIABLES

2007-03-22 Thread Womack, Adrian
Nothing wrong with "TO". LIT means "literally", I usually use TO for numbers and LIT for everything else. Using LIT with strings containing spaces is a little clearer than using TO. The help for EQUATE states "TO" is for equating to an expression, whereas "LIT" is for equating to a string. Regardi

Re: [U2] @VARIABLES

2007-03-22 Thread MAJ Programming
Two things: 1. What does LIT mean? 2. How popular is having this double equate situation. What's wrong with EQUATE ERASE TO @(-1) I have a small pet peeve with equates like this. If not in an include it causes the programs to become very hard to read as you're listing hundreds of lines before you

RE: [U2] @VARIABLES

2007-03-22 Thread Womack, Adrian
Are you guys aware of the universe supplied include: ATFUNCTIONS.INS.IBAS (or ATFUNCTIONS.H) which resides in .../uv/INCLUDE Here's an extract: EQUATE IT$CSTO -1 ;* clear screen (ANSI) EQUATE IT$CAH TO -2 ;* cursor absolute home (ANSI) EQUATE IT$CLEOS TO -3 ;* cle

Re: [U2] @VARIABLES

2007-03-22 Thread MAJ Programming
I hope you put assignments like this in an Include. Having them loose in each program lends itself to them being mislabeled or other problems. My 1 cent Mark Johnson - Original Message - From: "Buffington, Wyatt" <[EMAIL PROTECTED]> To: Sent: Thursday, March 22, 2007 8:56 AM Subject: RE:

RE: [U2] Daylight savings time change and SLEEP command

2007-03-22 Thread Jason Lin
On Thu, 22 Mar 2007, John Jenkins wrote: > Jason > > By the behaviour you describe: > > Sleep until a time would appear to operate as a SLEEP for the interval > between *now* and the specified time. This would be set at the moment that > the SLEEP is issued. E.g. If that is how SLEEP works then

RE: [U2] Daylight savings time change and SLEEP command

2007-03-22 Thread John Jenkins
Jason By the behaviour you describe: Sleep until a time would appear to operate as a SLEEP for the interval between *now* and the specified time. This would be set at the moment that the SLEEP is issued. E.g. At 01:00 issue a sleep 03:00 - this becomes a "sleep two hours" Change the clocks one h

RE: [U2] I need info on trapping the 'page up' key within a Universe Basic program ... Can anyone point me in the right direction ? {Unclassified}

2007-03-22 Thread HENDERSON MIKE, MR
Yes, Wol. "SYS.TERMINALS" exists on UniVerse 10.1.18. Mike > -Original Message- > From: [EMAIL PROTECTED] On Behalf Of Anthony W. Youngman > Sent: Friday, 23 March 2007 06:35 > To: u2-users@listserver.u2ug.org > Subject: Re: [U2] I need info on trapping the 'page up' key > within a Un

Re: [U2] I need info on trapping the 'page up' key within a Universe Basic program ... Can anyone point me in the right direction ?

2007-03-22 Thread Anthony W. Youngman
In message <[EMAIL PROTECTED]>, Martin Phillips <[EMAIL PROTECTED]> writes Hi Bob, I need info on trapping the 'page up' key within a Universe Basic program ... Can anyone point me in the right direction ? The problem is that page up, along with many other keys, sends a terminal type depende

RE: [U2] @Variables

2007-03-22 Thread Brutzman, Bill
What terminal emulator is in use there... Dynamic Connect, AccuTerm...? Please advise. --Bill -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Buffington, Wyatt Sent: Thursday, March 22, 2007 9:56 AM To: u2-users@listserver.u2ug.org Subject: RE: [U2] @VARIAB

Re: [U2] @Variables

2007-03-22 Thread Mats Carlid
Brutzman, Bill skrev: What terminal emulator is in use there... Dynamic Connect, AccuTerm...? That _should_ not matter. The @-function picks the relevant code from the terminfo database using you TERMINAL.TYPE setting. If ( or rather when ) the emulated terminal doesn't quite agree wit

RE: [U2] I need info on trapping the 'page up' key within a Universe Basic program ... Can anyone point me in the right direction ?

2007-03-22 Thread Andy Baum
Bob, Have you looked at !GET.KEY? Also for more functioality look at !PACK.FNKEYS and !EDIT.INPUT, not quite as good as they were in PI/Open but they work. Cheers, Andy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Bob Utech Sent: 22 March 2007 12:43 T

RE: [U2] @VARIABLES

2007-03-22 Thread Perry Taylor
@(-4) typically clears from the current cursor position to the end of the line, leaving the cursor position unchanged. So technically.. CRT @(2,15): @(-4): Is effectively the same as CRT @(2,15): @(-4): @(2,15): Does this answer your question? Perry -Original Message- From: [EMAIL

RE: [U2] @VARIABLES

2007-03-22 Thread brian
Hi @(-4) means 'clear the screen to end of line'. It does not reposition the cursor. So for example in the line below it should clear any previous text from the last entry - typically when proving a prompt. Similarly, @(-3) clears to end of screen. These, of course, assume that the terminal co

RE: [U2] @VARIABLES

2007-03-22 Thread Buffington, Wyatt
We define variables for the various @ statements **Screen clearing options CS = @(-1) ;**Clear Screen EOS = @(-3) ;**Clear to End Of Screen EOL = @(-4) ;**Clear to End Of Line **Define various ways to emphasize certain data/labels SBV = @

Re: [U2] I need info on trapping the 'page up' key within a Universe Basic program ... Can anyone point me in the right direction ?

2007-03-22 Thread Martin Phillips
Hi Bob, I need info on trapping the 'page up' key within a Universe Basic program ... Can anyone point me in the right direction ? The problem is that page up, along with many other keys, sends a terminal type dependent, multi-byte code. Wouldn't it be nice if UV provided a standard routine

Re: [U2] @VARIABLES

2007-03-22 Thread Martin Phillips
Hi Sanjeeb, CRT @(2,15):@(-4):@(2,15): Three elements: @(2,15) positions to column 2 of line 15. @(-4) clears the current line from the cursor position onwards. @(2,15) positions the cursor again but is not needed as @(-4) doesn't move it. @(23,45) Really? This is column 23 of line 45

RE: [U2] @VARIABLES

2007-03-22 Thread Kevin King
> CRT @(2,15):@(-4):@(2,15): CRT = print to the screen @(2,15) = move the cursor to column 2, row 15 : = ...then... @(-4) = Erase any characters found to the end of the line : = ...then... @(2,15) = reposition the cursor to column 2, row 15 : = ...and do not issue a at the end -Kevin [EMAIL PROT

RE: [U2] @VARIABLES

2007-03-22 Thread Brutzman, Bill
The program is positioning the cursor at (2,15)... clearing the line... and then re-positioning the cursor back at (2,15). --Bill -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Sanjeebkumar Sarangi Sent: Thursday, March 22, 2007 8:52 AM To: u2-users@listse

RE: [U2] I need info on trapping the 'page up' key within a Universe Basic program ... Can anyone point me in the right direction ?

2007-03-22 Thread brian
Bob Assuming your terminal type is set up correctly: $INCLUDE UNIVERSE.INCLUDE TERMINFO GoSub GetKey If (KEY.PREVIOUS.PAGE <> "") And (KEY.PREVIOUS.PAGE = MyKey) Then ... * get a raw keyboard entry * you can make this more clever e.g. look for lead in sequences etc. GetKey: MyKey = KeyIn

[U2] @VARIABLES

2007-03-22 Thread Sanjeebkumar Sarangi
Hi CRT @(2,15):@(-4):@(2,15): Basically when we use @(-4) ,it should go to the end of line...but when I tried the above statement I could not understand what it exactly did...I also tried by giving different x and y coordinate values ..ie CRT @(23,45):@(-4):@(23,45)..but the result seemed similar.

[U2] I need info on trapping the 'page up' key within a Universe Basic program ... Can anyone point me in the right direction ?

2007-03-22 Thread Bob Utech
Bob Utech, I.S. Coordinator Information Services Department (218) 879-3321 ext. 175 Visit RAM on the Web at www.rammutual.com This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have receive

[U2] [UV] Automated Testing

2007-03-22 Thread Susan Joslyn
Hi Stewart, First let me tell you that for actual automated testing we've had some luck with Compuware (on the lower end), Segue (on the upper end) and I have a client using a product from Mercury that I don't know much about. From the "record and playback" point of view it doesn't matter so muc

RE: [U2] [UV] Automated Testing

2007-03-22 Thread brian
Stewart Is this for new or existing software ? One convention I adopt is to a) code all business logic in reusable BASIC subroutines and b)adopt a single calling convention for those subroutines - in my case this is simply: SUBROUTINE MySub(InData, OutData, ErrText) or in some cases SUBROUTI