Re: [U2] @Variables

2007-03-27 Thread Anthony W. Youngman
In message [EMAIL PROTECTED], Brutzman, Bill 
[EMAIL PROTECTED] writes

I was right...

The BOLD thing @(-81), @(-82) does not work with Dynamic Connect.

If it doesn't, then it's probably because either (a) it's not defined 
for that term-type on the UniVerse system, so the two variables evaluate 
to , or (b) it's not defined in the Dynamic Connect .wis file, so it 
doesn't know what to do with them.


And if Dynamic Connect doesn't have a bold font, it needs to do 
something else - I think a lot of people used it to change colour 
instead, for example.


Cheers,
Wol
--
Anthony W. Youngman [EMAIL PROTECTED]
'Yings, yow graley yin! Suz ae rikt dheu,' said the blue man, taking the
thimble. 'What *is* he?' said Magrat. 'They're gnomes,' said Nanny. The man
lowered the thimble. 'Pictsies!' Carpe Jugulum, Terry Pratchett 1998
Visit the MaVerick web-site - http://www.maverick-dbms.org Open Source Pick
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


{Blocked Content} RE: [U2] @VARIABLES

2007-03-24 Thread Womack, Adrian
Warning: This message has had one or more attachments removed
Warning: (not named).
Warning: Please read the AngelicHost-Attachment-Warning.txt attachment(s)
for more information.

If the includes only contain EQUATES then there is no point in using GOSUB, as
EQUATES are resolved at compile time.



From: [EMAIL PROTECTED] on behalf of MAJ Programming
Sent: Fri 23/03/2007 9:55 PM
To: u2-users@listserver.u2ug.org
Subject: Re: [U2] @VARIABLES



snip
Maybe I'm missing something. Since I still have a few old Microdata clients
and I miss using regular Includes (and regular called subs), I make the very
first line of code GOSUB GET.INCLUDES and put all of my Includes at the
end of the program. That takes care of the line number offset problem.




DISCLAIMER:
Disclaimer.  This e-mail is private and confidential. If you are not the
intended recipient, please advise us by return e-mail immediately, and delete
the e-mail and any attachments without using or disclosing the contents in any
way. The views expressed in this e-mail are those of the author, and do not
represent those of this company unless this is clearly indicated. You should
scan this e-mail and any attachments for viruses. This company accepts no
liability for any direct or indirect damage or loss resulting from the use of
any attachments to this e-mail.
This is a message from the MailScanner E-Mail Virus Protection Service
--
The original e-mail attachment winmail.dat
was believed to be infected by a virus and has been replaced by this warning
message.

If you wish to receive a copy of the *infected* attachment, please
e-mail helpdesk and include the whole of this message
in your request. Alternatively, you can call them, with
the contents of this message to hand when you call.

At Sat Mar 24 03:54:03 2007 the virus scanner said:
   Could not parse Outlook Rich Text attachment

Note to Help Desk: Look on the AngelicHost MailScanner in
/home/virtual/site2/fst/var/spool/mail.quarantine/20070324 (message
l2OArwp4013691).
--
Postmaster
MailScanner thanks transtec Computers for their support
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


Re: {Blocked Content} RE: [U2] @VARIABLES

2007-03-24 Thread MAJ Programming
Perhaps you missed my post about Microdata Includes.

While INCLUDES themselves typically don't contain any logic or branching,
they technically could be on the same line. All of those variable
assignments (whether replacements at compile time or alias's) could be on
one single line of code.

EQUATE A TO 1, B TO 2, C TO 3, D TO 4
or
EQUATE A TO 1; EQUATE B TO 2; EQUATE C TO 3; EQUATE D TO 4

are the equivilent to
EQUATE A TO 1
EQUATE B TO 2
EQUATE C TO 3
EQUATE D TO 4

etc.

Since the INCLUDE line occupies a single line of source code, all of the
lines within that include inherit that errmsg line for runtime errors,
regardless if the contents of the Include is itself one line or many lines.

The problem with Microdata Includes is that if you have this Include

EDIT INCLUDES ABC
001 EQUATE A TO 1
002 EQUATE B TO 2
003 EQUATE C TO 3
004 EQUATE D TO 4

in this program:

001 PRINT INCLUDE LINE TEST
002 INCLUDE INCLUDES ABC
003 ZERO=0
004 PRINT D/ZERO
005 FOR I=1 TO 10
006 PRINT I
007 NEXT I
008 STOP
009 END

you will get the 'divide by zero' error message on line 7. When you look at
line 7 you will scratch your hear as NEXT I looks okay.

The problem with Microdata Includes is that the line 002 INCLUDE consumes
runtime lines 2,3,4  5. Thus the ZERO=0 is on runtime line 6 and the divide
by zero is on runtime line 8.

By changing line 002 to GOSUB GET.INCLUDES and putting the INCLUDES at the
end as shown:

001 OPEN VOC TO F.VOC ELSE STOP
002 GOSUB GET.INCLUDES
003 ZERO=0
004 PRINT D/ZERO
005 FOR I=1 TO 10
006 PRINT I
007 NEXT I
008 STOP
009 GET.INCLUDES:*
010 INCLUDE INCLUDES ABC
011 RETURN
012 END

causes all of the lines we care about in the debugger to be correct.

I use INCLUDES for many purposes. Housekeeping variable assignments, some
file field assignments, some common subroutines that are more effecient than
being a call etc.

You bring up an interesting point. If you have an Include that is compiler
equates, does that Include need to be processed before the mainline code at
the top, at the very end of the program (before the logical END) or could it
be after the logical END and just part of the source code?

Thanks
Mark Johnson

- Original Message -
From: Womack, Adrian [EMAIL PROTECTED]
To: u2-users@listserver.u2ug.org
Sent: Saturday, March 24, 2007 5:51 AM
Subject: {Blocked Content} RE: [U2] @VARIABLES


 Warning: This message has had one or more attachments removed
 Warning: (not named).
 Warning: Please read the AngelicHost-Attachment-Warning.txt
attachment(s)
 for more information.

 If the includes only contain EQUATES then there is no point in using
GOSUB, as
 EQUATES are resolved at compile time.

 

 From: [EMAIL PROTECTED] on behalf of MAJ Programming
 Sent: Fri 23/03/2007 9:55 PM
 To: u2-users@listserver.u2ug.org
 Subject: Re: [U2] @VARIABLES



 snip
 Maybe I'm missing something. Since I still have a few old Microdata
clients
 and I miss using regular Includes (and regular called subs), I make the
very
 first line of code GOSUB GET.INCLUDES and put all of my Includes at the
 end of the program. That takes care of the line number offset problem.




 DISCLAIMER:
 Disclaimer.  This e-mail is private and confidential. If you are not the
 intended recipient, please advise us by return e-mail immediately, and
delete
 the e-mail and any attachments without using or disclosing the contents in
any
 way. The views expressed in this e-mail are those of the author, and do
not
 represent those of this company unless this is clearly indicated. You
should
 scan this e-mail and any attachments for viruses. This company accepts no
 liability for any direct or indirect damage or loss resulting from the use
of
 any attachments to this e-mail.
 This is a message from the MailScanner E-Mail Virus Protection Service
 --
 The original e-mail attachment winmail.dat
 was believed to be infected by a virus and has been replaced by this
warning
 message.

 If you wish to receive a copy of the *infected* attachment, please
 e-mail helpdesk and include the whole of this message
 in your request. Alternatively, you can call them, with
 the contents of this message to hand when you call.

 At Sat Mar 24 03:54:03 2007 the virus scanner said:
Could not parse Outlook Rich Text attachment

 Note to Help Desk: Look on the AngelicHost MailScanner in
 /home/virtual/site2/fst/var/spool/mail.quarantine/20070324 (message
 l2OArwp4013691).
 --
 Postmaster
 MailScanner thanks transtec Computers for their support
 ---
 u2-users mailing list
 u2-users@listserver.u2ug.org
 To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] @VARIABLES

2007-03-23 Thread MAJ Programming
So TO and LIT are interchangable? Is there any difference or downside. I've
never seen or used LIT.

I have seen LET a long, long time ago but that's another story.

Thanks
- Original Message -
From: Womack, Adrian [EMAIL PROTECTED]
To: u2-users@listserver.u2ug.org
Sent: Friday, March 23, 2007 12:20 AM
Subject: RE: [U2] @VARIABLES


 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.

 Regarding INCLUDES, I did state We created our own include to define
 the most commonly used.

 We also have one set of equates for each of our data files (used for
 field numbers), but they all exist in their own include, making field
 names unique across all of our systems. Most of our programs will have
 five or six INCLUDES at the top and then they drop straight into the
 code.

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of MAJ Programming
 Sent: Friday, 23 March 2007 1:53 PM
 To: u2-users@listserver.u2ug.org
 Subject: Re: [U2] @VARIABLES

 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 get to any real action. Second, not being
 in an include, the prior programmers may have had many sets of equates
 (one per data file) taking up so much room and the gist of the program
 is:

 LOOP WHILE READNEXT ID DO
READ CUST FROM F.CUSTOMER, ID ELSE CONTINUE
CUSTCM$MTD.SALES=
WRITE CUST ON F.CUSTOMER, ID
 REPEAT

 So this program may be 200-300 lines only to support this function.

 Third, not having them in an include may cause some deviation amongst
 the different programs using the same files.

 I've got a new client with an old box using the ABEST programming
 structure and while it supports INCLUDES, each program may have hundreds
 of lines of individual equates for simple updating like above. I'm
 trying to rein in the horses by converting to an include but I have to
 neutralize the field name differences. Very unreadable.

 For the newbies, if you're going to use many equates, put them in an
 INCLUDE for consistency.

 My 2 cents
 Mark JOhnson


 - Original Message -
 From: Womack, Adrian [EMAIL PROTECTED]
 To: u2-users@listserver.u2ug.org
 Sent: Thursday, March 22, 2007 7:29 PM
 Subject: RE: [U2] @VARIABLES


  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  ;* clear to end of screen
  EQUATE IT$CLEOL TO -4  ;* clear to end of line
  EQUATE IT$SBLINKTO -5  ;* start blinking field
  EQUATE IT$EBLINKTO -6  ;* end blinking field
 
  We created our own include to define the most commonly used, using the

  supplied names:
 
  EQUATE ERASE  LIT @(IT$CS)
  EQUATE HOME   LIT @(IT$CAH)
  EQUATE CS LIT @(IT$CLEOS)
  EQUATE CL LIT @(IT$CLEOL)
  EQUATE BLNK   LIT @(IT$SBLINK)
  EQUATE BS LIT @(IT$CUB)
  EQUATE BG LIT @(IT$SHALF)
  EQUATE FG LIT @(IT$EHALF)
  EQUATE INVLIT @(IT$SREV)
  EQUATE NORM   LIT @(IT$EREV)
  etc.
 
 
  IMO it's best to use EQUATES as then there is no possibility of
  someone accidentally assigning something else to those names.
 
  Adrian
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
  DISCLAIMER:
  Disclaimer.  This e-mail is private and confidential. If you are not
  the
 intended recipient, please advise us by return e-mail immediately, and
 delete the e-mail and any attachments without using or disclosing the
 contents in any way. The views expressed in this e-mail are those of the
 author, and do not represent those of this company unless this is
 clearly indicated. You should scan this e-mail and any attachments for
 viruses. This company accepts no liability for any direct or indirect
 damage or loss resulting from the use of any attachments to this e-mail.
  ---
  u2-users mailing list
  u2-users@listserver.u2ug.org
  To unsubscribe please visit http://listserver.u2ug.org/
 ---
 u2-users mailing list
 u2-users@listserver.u2ug.org
 To unsubscribe please visit http://listserver.u2ug.org/


 DISCLAIMER:
 Disclaimer.  This e-mail is private and confidential. If you are not the
intended recipient, please advise us by return e-mail immediately, and
delete the e-mail and any attachments without using or disclosing the
contents in any way. The views expressed in this e-mail are those of the
author, and do

Re: [U2] @VARIABLES

2007-03-23 Thread MAJ Programming
Bravo. If I were to use Includes for file definitions, I would use that
method for consistency.

One client of mine uses a quasi-4GL called Primac that apparently pre-dates
Includes. I don't know when Includes were added to mv systems overall, but I
recall them being added to Microdata around 1984 (although in a sort-of
prohibitive way).

Primac uses a pre-compiler that processes the source code looking for
$CPYLIB INCLUDE.FILE INCLUDE.ITEM and converted the $CPYLIB expression
manually as an Include and generated basically the larger source code of
which was then compiled. Add a common INPUT and PRINT subroutine and those
guys were on to something pretty smart for the 1984 time period.

There are 2 downsides to the Microdata Includes. First, the run-time error
messages were offset by the number of lines of the includes. Thus you could
get Divide by zero on line 478 and 478 was END. Second, you could only
Include items from the same file as the item was in.

Maybe I'm missing something. Since I still have a few old Microdata clients
and I miss using regular Includes (and regular called subs), I make the very
first line of code GOSUB GET.INCLUDES and put all of my Includes at the
end of the program. That takes care of the line number offset problem.

Unable to find documentation for the syntax of Microdata Includes, does
anyone remember how I could have one Include file be available to a system
with more than one BP file. Otherwise, I maintain the Includes redundantly
in each BP file.

Thanks in advance.
Mark Johnson
- Original Message -
From: Womack, Adrian [EMAIL PROTECTED]
To: u2-users@listserver.u2ug.org
Sent: Friday, March 23, 2007 12:20 AM
Subject: RE: [U2] @VARIABLES


 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.

 Regarding INCLUDES, I did state We created our own include to define
 the most commonly used.

 We also have one set of equates for each of our data files (used for
 field numbers), but they all exist in their own include, making field
 names unique across all of our systems. Most of our programs will have
 five or six INCLUDES at the top and then they drop straight into the
 code.

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of MAJ Programming
 Sent: Friday, 23 March 2007 1:53 PM
 To: u2-users@listserver.u2ug.org
 Subject: Re: [U2] @VARIABLES

 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 get to any real action. Second, not being
 in an include, the prior programmers may have had many sets of equates
 (one per data file) taking up so much room and the gist of the program
 is:

 LOOP WHILE READNEXT ID DO
READ CUST FROM F.CUSTOMER, ID ELSE CONTINUE
CUSTCM$MTD.SALES=
WRITE CUST ON F.CUSTOMER, ID
 REPEAT

 So this program may be 200-300 lines only to support this function.

 Third, not having them in an include may cause some deviation amongst
 the different programs using the same files.

 I've got a new client with an old box using the ABEST programming
 structure and while it supports INCLUDES, each program may have hundreds
 of lines of individual equates for simple updating like above. I'm
 trying to rein in the horses by converting to an include but I have to
 neutralize the field name differences. Very unreadable.

 For the newbies, if you're going to use many equates, put them in an
 INCLUDE for consistency.

 My 2 cents
 Mark JOhnson


 - Original Message -
 From: Womack, Adrian [EMAIL PROTECTED]
 To: u2-users@listserver.u2ug.org
 Sent: Thursday, March 22, 2007 7:29 PM
 Subject: RE: [U2] @VARIABLES


  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  ;* clear to end of screen
  EQUATE IT$CLEOL TO -4  ;* clear to end of line
  EQUATE IT$SBLINKTO -5  ;* start blinking field
  EQUATE IT$EBLINKTO -6  ;* end blinking field
 
  We created our own include to define the most commonly used, using the

  supplied names:
 
  EQUATE ERASE  LIT @(IT$CS)
  EQUATE HOME   LIT @(IT$CAH)
  EQUATE CS LIT @(IT$CLEOS)
  EQUATE CL LIT @(IT$CLEOL)
  EQUATE BLNK   LIT @(IT$SBLINK)
  EQUATE BS LIT @(IT$CUB)
  EQUATE BG LIT @(IT$SHALF)
  EQUATE FG LIT @(IT$EHALF)
  EQUATE INVLIT @(IT$SREV)
  EQUATE NORM

RE: [U2] @Variables

2007-03-23 Thread Brutzman, Bill
I was right...

The BOLD thing @(-81), @(-82) does not work with Dynamic Connect.

--Bill
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


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@listserver.u2ug.org
Subject: [U2] @VARIABLES


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.I could not find
the difference.Please help in this regard.
Thanks,
Sanjeeb
=-=-=
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


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 cr at the end

-Kevin
[EMAIL PROTECTED]
http://www.PrecisOnline.com
 
** Check out scheduled Connect! training courses at
http://www.PrecisOnline.com/train.html.
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


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. I suspect that you have the 
coordinates swapped.



Martin Phillips
Ladybridge Systems Ltd
17b Coldstream Lane, Hardingstone, Northampton, NN4 6DB
+44-(0)1604-709200 
---

u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


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  = @(-5)   ;**Start Blink Video
  EBV  = @(-6)   ;**End Blink Video
  SRV  = @(-13)  ;**Start Reverse Video
  ERV  = @(-14)  ;**End Reverse Video
  SUL  = @(-15)  ;**Start UnderLine video
  EUL  = @(-16)  ;**End UnderLine video

**Useful for placing boxes around information
  SGM  = @(-27)  ;**Start Graphics Mode
  EGM  = @(-28)  ;**End Graphics Mode

**Cursor movements
  CUB  = @(-9)   ;**CUrsor Backward
  CUU  = @(-10)  ;**CUrsor Up a line
  CUD  = @(-33)  ;**CUrsor Down a line
  CUF  = @(-34)  ;**CUrsor Foreward

**Use the following to indicate text input fields
  SRT.BOLD = @(-81)  ;**Start BOLD font
  END.BOLD = @(-82)  ;**End BOLD font 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sanjeebkumar
Sarangi
Sent: Thursday, March 22, 2007 7:52 AM
To: u2-users@listserver.u2ug.org
Subject: [U2] @VARIABLES

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.I could
not find the difference.Please help in this regard.
Thanks,
Sanjeeb
=-=-=
Notice: The information contained in this e-mail message and/or
attachments to it may contain confidential or privileged information. If
you are not the intended recipient, any dissemination, use, review,
distribution, printing or copying of the information contained in this
e-mail message and/or attachments to it are strictly prohibited. If you
have received this communication in error, please notify us by reply
e-mail or telephone and immediately and permanently delete the message
and any attachments. Thank you
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


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 control entries have been correctly 
defined for your terminal type.

Brian

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.I could not find
the difference.Please help in this regard.
Thanks,
Sanjeeb
=-=-=
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


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 PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sanjeebkumar
Sarangi
Sent: Thursday, March 22, 2007 8:52 AM
To: u2-users@listserver.u2ug.org
Subject: [U2] @VARIABLES

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.I could not
find
the difference.Please help in this regard.
Thanks,
Sanjeeb
=-=-=
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/

CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for 
the sole use of the intended recipient(s) and may contain confidential and 
privileged information.  Any unauthorized review, use, disclosure or 
distribution is prohibited. ZirMed, Inc. has strict policies regarding the 
content of e-mail communications, specifically Protected Health Information, 
any communications containing such material will be returned to the originating 
party with such advisement noted. If you are not the intended recipient, please 
contact the sender by reply e-mail and destroy all copies of the original 
message.
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


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 with the
original terminal  as it  is stored there  you  have to  either
- change  the terminfo entry
- make up an terminfo entry of your own
- or live with the crippled functionality.

Making/changing terminfo is well documented in the docs.!
(  System administration appendix B  - at least when I last  needed it)

-- mats 

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] @VARIABLES


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  = @(-5)   ;**Start Blink Video
  EBV  = @(-6)   ;**End Blink Video
  SRV  = @(-13)  ;**Start Reverse Video
  ERV  = @(-14)  ;**End Reverse Video
  SUL  = @(-15)  ;**Start UnderLine video
  EUL  = @(-16)  ;**End UnderLine video

**Useful for placing boxes around information
  SGM  = @(-27)  ;**Start Graphics Mode
  EGM  = @(-28)  ;**End Graphics Mode

**Cursor movements
  CUB  = @(-9)   ;**CUrsor Backward
  CUU  = @(-10)  ;**CUrsor Up a line
  CUD  = @(-33)  ;**CUrsor Down a line
  CUF  = @(-34)  ;**CUrsor Foreward

**Use the following to indicate text input fields
  SRT.BOLD = @(-81)  ;**Start BOLD font
  END.BOLD = @(-82)  ;**End BOLD font 


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sanjeebkumar
Sarangi
Sent: Thursday, March 22, 2007 7:52 AM
To: u2-users@listserver.u2ug.org
Subject: [U2] @VARIABLES

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.I could
not find the difference.Please help in this regard.
Thanks,
Sanjeeb

---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


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] @VARIABLES


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  = @(-5)   ;**Start Blink Video
  EBV  = @(-6)   ;**End Blink Video
  SRV  = @(-13)  ;**Start Reverse Video
  ERV  = @(-14)  ;**End Reverse Video
  SUL  = @(-15)  ;**Start UnderLine video
  EUL  = @(-16)  ;**End UnderLine video

**Useful for placing boxes around information
  SGM  = @(-27)  ;**Start Graphics Mode
  EGM  = @(-28)  ;**End Graphics Mode

**Cursor movements
  CUB  = @(-9)   ;**CUrsor Backward
  CUU  = @(-10)  ;**CUrsor Up a line
  CUD  = @(-33)  ;**CUrsor Down a line
  CUF  = @(-34)  ;**CUrsor Foreward

**Use the following to indicate text input fields
  SRT.BOLD = @(-81)  ;**Start BOLD font
  END.BOLD = @(-82)  ;**End BOLD font 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sanjeebkumar
Sarangi
Sent: Thursday, March 22, 2007 7:52 AM
To: u2-users@listserver.u2ug.org
Subject: [U2] @VARIABLES

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.I could
not find the difference.Please help in this regard.
Thanks,
Sanjeeb
=-=-=
Notice: The information contained in this e-mail message and/or
attachments to it may contain confidential or privileged information. If
you are not the intended recipient, any dissemination, use, review,
distribution, printing or copying of the information contained in this
e-mail message and/or attachments to it are strictly prohibited. If you
have received this communication in error, please notify us by reply
e-mail or telephone and immediately and permanently delete the message
and any attachments. Thank you
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


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: u2-users@listserver.u2ug.org
Sent: Thursday, March 22, 2007 8:56 AM
Subject: RE: [U2] @VARIABLES


 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  = @(-5)   ;**Start Blink Video
   EBV  = @(-6)   ;**End Blink Video
   SRV  = @(-13)  ;**Start Reverse Video
   ERV  = @(-14)  ;**End Reverse Video
   SUL  = @(-15)  ;**Start UnderLine video
   EUL  = @(-16)  ;**End UnderLine video

 **Useful for placing boxes around information
   SGM  = @(-27)  ;**Start Graphics Mode
   EGM  = @(-28)  ;**End Graphics Mode

 **Cursor movements
   CUB  = @(-9)   ;**CUrsor Backward
   CUU  = @(-10)  ;**CUrsor Up a line
   CUD  = @(-33)  ;**CUrsor Down a line
   CUF  = @(-34)  ;**CUrsor Foreward

 **Use the following to indicate text input fields
   SRT.BOLD = @(-81)  ;**Start BOLD font
   END.BOLD = @(-82)  ;**End BOLD font

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Sanjeebkumar
 Sarangi
 Sent: Thursday, March 22, 2007 7:52 AM
 To: u2-users@listserver.u2ug.org
 Subject: [U2] @VARIABLES

 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.I could
 not find the difference.Please help in this regard.
 Thanks,
 Sanjeeb
 =-=-=
 Notice: The information contained in this e-mail message and/or
 attachments to it may contain confidential or privileged information. If
 you are not the intended recipient, any dissemination, use, review,
 distribution, printing or copying of the information contained in this
 e-mail message and/or attachments to it are strictly prohibited. If you
 have received this communication in error, please notify us by reply
 e-mail or telephone and immediately and permanently delete the message
 and any attachments. Thank you
 ---
 u2-users mailing list
 u2-users@listserver.u2ug.org
 To unsubscribe please visit http://listserver.u2ug.org/
 ---
 u2-users mailing list
 u2-users@listserver.u2ug.org
 To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


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  ;* clear to end of screen
EQUATE IT$CLEOL TO -4  ;* clear to end of line
EQUATE IT$SBLINKTO -5  ;* start blinking field
EQUATE IT$EBLINKTO -6  ;* end blinking field

We created our own include to define the most commonly used, using the
supplied names:

EQUATE ERASE  LIT @(IT$CS)
EQUATE HOME   LIT @(IT$CAH)
EQUATE CS LIT @(IT$CLEOS)
EQUATE CL LIT @(IT$CLEOL)
EQUATE BLNK   LIT @(IT$SBLINK)
EQUATE BS LIT @(IT$CUB)
EQUATE BG LIT @(IT$SHALF)
EQUATE FG LIT @(IT$EHALF)
EQUATE INVLIT @(IT$SREV)
EQUATE NORM   LIT @(IT$EREV)
etc.


IMO it's best to use EQUATES as then there is no possibility of someone
accidentally assigning something else to those names.

Adrian


















DISCLAIMER:
Disclaimer.  This e-mail is private and confidential. If you are not the 
intended recipient, please advise us by return e-mail immediately, and delete 
the e-mail and any attachments without using or disclosing the contents in any 
way. The views expressed in this e-mail are those of the author, and do not 
represent those of this company unless this is clearly indicated. You should 
scan this e-mail and any attachments for viruses. This company accepts no 
liability for any direct or indirect damage or loss resulting from the use of 
any attachments to this e-mail.
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


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 get to any real action. Second, not being in an include,
the prior programmers may have had many sets of equates (one per data file)
taking up so much room and the gist of the program is:

LOOP WHILE READNEXT ID DO
   READ CUST FROM F.CUSTOMER, ID ELSE CONTINUE
   CUSTCM$MTD.SALES=
   WRITE CUST ON F.CUSTOMER, ID
REPEAT

So this program may be 200-300 lines only to support this function.

Third, not having them in an include may cause some deviation amongst the
different programs using the same files.

I've got a new client with an old box using the ABEST programming structure
and while it supports INCLUDES, each program may have hundreds of lines of
individual equates for simple updating like above. I'm trying to rein in the
horses by converting to an include but I have to neutralize the field name
differences. Very unreadable.

For the newbies, if you're going to use many equates, put them in an INCLUDE
for consistency.

My 2 cents
Mark JOhnson


- Original Message -
From: Womack, Adrian [EMAIL PROTECTED]
To: u2-users@listserver.u2ug.org
Sent: Thursday, March 22, 2007 7:29 PM
Subject: RE: [U2] @VARIABLES


 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  ;* clear to end of screen
 EQUATE IT$CLEOL TO -4  ;* clear to end of line
 EQUATE IT$SBLINKTO -5  ;* start blinking field
 EQUATE IT$EBLINKTO -6  ;* end blinking field

 We created our own include to define the most commonly used, using the
 supplied names:

 EQUATE ERASE  LIT @(IT$CS)
 EQUATE HOME   LIT @(IT$CAH)
 EQUATE CS LIT @(IT$CLEOS)
 EQUATE CL LIT @(IT$CLEOL)
 EQUATE BLNK   LIT @(IT$SBLINK)
 EQUATE BS LIT @(IT$CUB)
 EQUATE BG LIT @(IT$SHALF)
 EQUATE FG LIT @(IT$EHALF)
 EQUATE INVLIT @(IT$SREV)
 EQUATE NORM   LIT @(IT$EREV)
 etc.


 IMO it's best to use EQUATES as then there is no possibility of someone
 accidentally assigning something else to those names.

 Adrian


















 DISCLAIMER:
 Disclaimer.  This e-mail is private and confidential. If you are not the
intended recipient, please advise us by return e-mail immediately, and
delete the e-mail and any attachments without using or disclosing the
contents in any way. The views expressed in this e-mail are those of the
author, and do not represent those of this company unless this is clearly
indicated. You should scan this e-mail and any attachments for viruses. This
company accepts no liability for any direct or indirect damage or loss
resulting from the use of any attachments to this e-mail.
 ---
 u2-users mailing list
 u2-users@listserver.u2ug.org
 To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


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.

Regarding INCLUDES, I did state We created our own include to define
the most commonly used.

We also have one set of equates for each of our data files (used for
field numbers), but they all exist in their own include, making field
names unique across all of our systems. Most of our programs will have
five or six INCLUDES at the top and then they drop straight into the
code.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of MAJ Programming
Sent: Friday, 23 March 2007 1:53 PM
To: u2-users@listserver.u2ug.org
Subject: Re: [U2] @VARIABLES

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 get to any real action. Second, not being
in an include, the prior programmers may have had many sets of equates
(one per data file) taking up so much room and the gist of the program
is:

LOOP WHILE READNEXT ID DO
   READ CUST FROM F.CUSTOMER, ID ELSE CONTINUE
   CUSTCM$MTD.SALES=
   WRITE CUST ON F.CUSTOMER, ID
REPEAT

So this program may be 200-300 lines only to support this function.

Third, not having them in an include may cause some deviation amongst
the different programs using the same files.

I've got a new client with an old box using the ABEST programming
structure and while it supports INCLUDES, each program may have hundreds
of lines of individual equates for simple updating like above. I'm
trying to rein in the horses by converting to an include but I have to
neutralize the field name differences. Very unreadable.

For the newbies, if you're going to use many equates, put them in an
INCLUDE for consistency.

My 2 cents
Mark JOhnson


- Original Message -
From: Womack, Adrian [EMAIL PROTECTED]
To: u2-users@listserver.u2ug.org
Sent: Thursday, March 22, 2007 7:29 PM
Subject: RE: [U2] @VARIABLES


 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  ;* clear to end of screen
 EQUATE IT$CLEOL TO -4  ;* clear to end of line
 EQUATE IT$SBLINKTO -5  ;* start blinking field
 EQUATE IT$EBLINKTO -6  ;* end blinking field

 We created our own include to define the most commonly used, using the

 supplied names:

 EQUATE ERASE  LIT @(IT$CS)
 EQUATE HOME   LIT @(IT$CAH)
 EQUATE CS LIT @(IT$CLEOS)
 EQUATE CL LIT @(IT$CLEOL)
 EQUATE BLNK   LIT @(IT$SBLINK)
 EQUATE BS LIT @(IT$CUB)
 EQUATE BG LIT @(IT$SHALF)
 EQUATE FG LIT @(IT$EHALF)
 EQUATE INVLIT @(IT$SREV)
 EQUATE NORM   LIT @(IT$EREV)
 etc.


 IMO it's best to use EQUATES as then there is no possibility of 
 someone accidentally assigning something else to those names.

 Adrian


















 DISCLAIMER:
 Disclaimer.  This e-mail is private and confidential. If you are not 
 the
intended recipient, please advise us by return e-mail immediately, and
delete the e-mail and any attachments without using or disclosing the
contents in any way. The views expressed in this e-mail are those of the
author, and do not represent those of this company unless this is
clearly indicated. You should scan this e-mail and any attachments for
viruses. This company accepts no liability for any direct or indirect
damage or loss resulting from the use of any attachments to this e-mail.
 ---
 u2-users mailing list
 u2-users@listserver.u2ug.org
 To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


DISCLAIMER:
Disclaimer.  This e-mail is private and confidential. If you are not the 
intended recipient, please advise us by return e-mail immediately, and delete 
the e-mail and any attachments without using or disclosing the contents in any 
way. The views expressed in this e-mail are those of the author, and do not 
represent those of this company unless this is clearly indicated. You should 
scan this e-mail and any attachments for viruses. This company accepts no 
liability for any direct or indirect damage or loss resulting from the use of 
any attachments to this e-mail.
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/