RE: [U2] VPC 2007 and UniVerse

2007-03-24 Thread David Jordan
I think VPC 2007, was urgently released as VPC 2004 did not run on Vista.  

Regards

David Jordan
---
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/


[U2] New to UV/PICK, programming a banner

2007-03-24 Thread Gabriel Green
Hello,

I am new to PICK/UniVerse and was wondering if someone could help me with
some BASIC code or a PROC instructions to get me going on a banner program
that will display before, or after, the Logon Please: prompt (but after
the initial telnet server login).

Preferrably I'd like a unix style /etc/motd type thing (we're on Windows of
course so that is not available, UV 10.2.) that I could update periodically
with wED and update for our users to see.

Can anyone help with this?

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


Re: [U2] New to UV/PICK, programming a banner

2007-03-24 Thread Louis Windsor

Simply:-

ED BP MOTD
I Enter
OPEN 'file' TO file THEN
READ MOTD FROM file,'MOTD' THEN
CNT=DCOUNT(MOTD,@FM)
FOR X=1 TO CNT; CRT MOTDX; EXT X
CRT; CRT 'Read and Press Enter To Continue'; INPUT 
WHATEVER:

STOP
 END ELSE
CRT; CRT 'No Message Of The Day'; CRT; STOP
 END
END ELSE
 CRT; CRT 'No MOTD File'; CRT; STOP
END
Enter
FI

file is whatever file you wish to use even TEMP or CTL (general control 
file)?


Compile and include line

RUN BP MOTD

in your LOGIN paragraph

To create the message:-

ED file MOTD  (or wED or whatever editor)
I
Type whatever message you want to display here
Enter
FI

To delete the message

ED file MOTD
FD

Like I said it is simple.  Assumes the message is less than a screen full 
and each line is less than screen width.


No flames please - I said it is simple.

Louis

- Original Message - 
From: Gabriel Green [EMAIL PROTECTED]

To: u2-users@listserver.u2ug.org
Sent: Sunday, March 25, 2007 12:38 PM
Subject: [U2] New to UV/PICK, programming a banner



Hello,

I am new to PICK/UniVerse and was wondering if someone could help me with
some BASIC code or a PROC instructions to get me going on a banner program
that will display before, or after, the Logon Please: prompt (but after
the initial telnet server login).

Preferrably I'd like a unix style /etc/motd type thing (we're on Windows 
of
course so that is not available, UV 10.2.) that I could update 
periodically

with wED and update for our users to see.

Can anyone help with this?

Thanks,
Gabe
---
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/