To use Pause 3 as a meter you have to update its progress.
This is from R:Docs, a very valuable tool.

-- Example 08 (PAUSE Command with an Incrementing Meter)

SET VAR vMeterTheme TEXT = 'R:BASE Rocks!'
SET VAR vProgress INT = 0

WHILE vProgress < 101 THEN
   PAUSE 3 USING +
   'Processing Work Load...      ' +
   CAPTION ' ' +
   OPTION METER_VISIBLE ON +
   |METER_VALUE .vProgress +
   |METER_TYPE NORMAL +
   |METER_BACK_COLOR WHITE +
   |METER_BAR_COLOR NAVY +
   |METER_FONT_COLOR RED +
   |MESSAGE_FONT_NAME VERDANA +
   |MESSAGE_FONT_SIZE 10 +
   |MESSAGE_FONT_COLOR BLUE +
   |THEMENAME &vMeterTheme

   -- compute as percentage of something

   PAUSE FOR 1  --added for display purposes

   SET VAR vProgress = (.vProgress + 25)
ENDWHILE
CLS

From: [email protected] [mailto:[email protected]] On Behalf Of Dr. Fritz 
Luettgens
Sent: Wednesday, November 26, 2014 8:42 AM
To: RBASE-L Mailing List
Subject: [RBASE-L] - AW: [RBASE-L] - Meter control

Hi Bob,
Ref.: to Metertype normal

I use this like:

PAUSE 3 USING +
"CALCULATING !" +
CAPTION "(c)drfl MKT-KISS " +
OPTION METER_VISIBLE ON +
|METER_VALUE .vProgress +
|METER_TYPE BAR3D +
|METER_BACK_COLOR WHITE +
|METER_BAR_COLOR NAVY +
|METER_FONT_COLOR RED +
|BACK_COLOR WHITE +
|MESSAGE_COLOR WHITE +
|MESSAGE_FONT_COLOR GREEN

With: SET PROGRESS ON

Works, but
shows me always only 25% max with bar 1/4.
Then proceeds with CLS.
Same results with different implementations.
Fritz

Von: [email protected]<mailto:[email protected]> [mailto:[email protected]] Im 
Auftrag von [email protected]<mailto:[email protected]>
Gesendet: Mittwoch, 26. November 2014 15:11
An: RBASE-L Mailing List
Betreff: [RBASE-L] - Meter control

Is the below the expected results?

version 9.5

Meter control

Meter type : Bar 3D
Segment options can be set, but no segments are displayed.
Percent indicator can be set and percent is displayed

Meter type :  Normal
Segment options can be set, but no segments are displayed.
Percent indicator can be set and is displayed

Meter type :  LED
Segment options can be set, and segments are displayed.
Percent indicator can be set, but percent indicator is not displayed.

I wanted to have segments displayed and have a percent indicator,
but have been unable to do so.

Thank you,
Bob

Reply via email to