× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: Re: GUI RLU (was Record Number / RPG cycle)
  • From: "Simon Coulter" <shc@xxxxxxxxxxxxxxxxx>
  • Date: Tue, 22 Feb 00 22:49:19 +1100


Hello Booth.

I suppose I should answer this since it is my code you're playing with.

Multiple CHGVARs are the only way in CL.  If you are concerned about the 
efficiency of the code you could simply 
save the individual time values (LEFT_HR, RIGHT_HR, LEFT_MIN, and RIGHT_MIN) 
and compare them so you'ld 
only set the minimum number of indicators.

The following changes will allow a function key to gracefully terminate the 
clock:

CLOCKD -- Add the following lines
========
A                                      CA03(03 'Exit') 

A                                 23  2'F3=Exit' COLOR(BLU) 

CLOCKC
========
            /* Display the clock face                              */ 
            SNDRCVF    WAIT(*NO)                                      
            MONMSG     MSGID(CPF0887) EXEC(DO)                        
            RCVMSG     MSGTYPE(*EXCP)                                 
              RCVF                                                    
            ENDDO                                                     
                                                                      
            IF         COND(&IN03 *EQ &ON) THEN(RETURN)               
                                                                      
The above code replaces the current SNDF command and fits before the DLYJOB 
command.  The 'strangeness' of the 
construct is necessary to satisfy device requirments for the order of I/O 
operations.

What are "figlet" letters?

Regards,
Simon Coulter.

«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»
«» FlyByNight Software         AS/400 Technical Specialists       «»
«» Eclipse the competition - run your business on an IBM AS/400.  «»
«»                                                                «»
«» Phone: +61 3 9419 0175      Mobile: +61 0411 091 400           «»
«» Fax:   +61 3 9419 0175      mailto: shc@flybynight.com.au      «»
«»                                                                «»
«» Windoze should not be open at Warp speed.                      «»
«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»
//--- forwarded letter -------------------------------------------------------
> X-Mailer: Lotus Notes Release 5.0a  May 4, 1999
> Date: Tue, 22 Feb 2000 01:57:07 +0000
> From: boothm@earth.goddard.edu
> To: RPG400-L@midrange.com
> Reply-To: RPG400-L@midrange.com
> Cc: none
> Subject: GUI RLU (was Record Number / RPG cycle)

> 
> After Scott's answer this morning I decided I must have missed something. 
> Sure enough John, there' a  "design" command that I'd never seen before. 
> That made a lot of difference. 
> 
> Simon's CL digital clock was what I decided to use as my "going to school" 
> example.  I liked the way the Code/400 designer worked, allowing me to 
> paste in figlet letters instead of the 88:88:88 stick numbers.
> 
> I came away with two questions: In CL with a DDS screen how do you turn 
> off 59 indicators every cycle?  There has got to be something better than 
> CHGVAR repeated 59 times, hasn't there?   And, number 2, is there a way to 
> monitor for a function key?  I want the clock to tick off the seconds, 
> which I suppose means a SNDRCVF *NO followed by a DLYJOB command, and then 
> a GOTO.  But I don't understand a way the job can be interrupted and then 
> ended gracefully.
> 
> 
> _______________________
> Booth Martin
> boothm@earth.goddard.edu
> http://www.spy.net/~booth

+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.