Steve -

 

Did you try the Plugin on the Utilities menu (see my notes below)?   It's
really helpful and it builds the syntax for you.  If you still need help,
feel free to post the details of what you're trying to accomplish here and
someone will help you out.

 

Using your example way below, here is one you might try:

 

DIALOG 'Enter an Invoice number ...' vResponse vEndKey  1  +

  CAPTION 'The cool Invoice number getter ...' +

  ICON CONFIRM +

  OPTION BUTTON_OK_CAPTION &Continue|+

  BUTTON_CANCEL_CAPTION &Nevermind

 

But don't wait for me - I'm off to New York, New York and Broadway & Pink
Martini - won't have a computer anywhere around till late Monday .. What a
treat this will be!

 

Sami

 

From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Steve Breen
Sent: Saturday, March 08, 2008 4:37 AM
To: RBASE-L Mailing List
Subject: [RBASE-L] - RE: DIALOG BOX CONTROL

 

Sami,

 

Can you help me with an example of dialog box that would have allow input
response like this.

 

I am begining to understand

 

Thanks

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] Behalf Of Sami Aaron
Sent: Thursday, March 06, 2008 9:38 AM
To: RBASE-L Mailing List
Subject: [RBASE-L] - RE: DIALOG BOX CONTROL

Steve -

 

You can use whatever words you want on the buttons - like "Continue" and
"Cancel" - or "Okeedokee" and "Fegetabboutit" but the right button will
always return 'Yes' and the left button will always return 'No'.

 

As a helpful tool to learn this syntax, look on the main R:BASE menu under
Utilities / Plugins / Dialog with Buttons Builder.  Select all the prompts
you want on the first two tabs, then press "Build" and see the syntax on the
last tab.

 

DIALOG 'Type Message Here ...' vResponse vEndKey  YES  +

  CAPTION 'Type Caption Here ...' +

  ICON ATTENTION +

  OPTION BUTTON_YES_CAPTION OkeeDokee+

  |BUTTON_NO_CAPTION Fegetabboutit

If vResponse = 'Yes' THEN

--the user selected "OkeeDokee"

ELSE

--the user selected "Fegetabboutit"

ENDIF

 

Sami

 

____________________________

Sami Aaron

Software Management Specialists

913-915-1971

[EMAIL PROTECTED]

 

 

 

 

From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Steve Breen
Sent: Thursday, March 06, 2008 6:13 AM
To: RBASE-L Mailing List
Subject: [RBASE-L] - RE: DIALOG BOX CONTROL

 

Buddy

 

If you click the ok or cancel button on the dialog box does it set a
variable such as vkey or how do they function?

 

I understand the function of vkey and last key just not the dialog button
output or response

 

Steve

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] Behalf Of Walker, Buddy
Sent: Wednesday, March 05, 2008 7:03 PM
To: RBASE-L Mailing List
Subject: [RBASE-L] - RE: DIALOG BOX CONTROL

Steve 

  You can check the variable vkey

 

   If vkey = '[esc]' or vinv#  then

     Whatever..

   Endif

 

   You could also check to see if vinv# is null 

 

Buddy

 

  _____  

From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Steve Breen
Sent: Wednesday, March 05, 2008 5:15 PM
To: RBASE-L Mailing List
Subject: [RBASE-L] - DIALOG BOX CONTROL

 

In 6.5 plus a dialog box did not have options such as ok and cancel. Now
that the do I am not sure how to control their input results in the code.

 

IE: using mouse to select the "cancel" option

 

Please offer any suggestions

 

Steve

 

 

-- get_inv_number.rmd

 

LABEL loop
CLEAR VAR vinv#
DIALOG 'Enter A Invoice Number or ESC to exit (CDIINV):' vinv#=10 vkey 1

 

IF (LASTKEY(0)) = '[esc]' THEN
  GOTO finish
ENDIF

 

IF (LASTKEY(0)) = '[cancel]' THEN
  GOTO finish
ENDIF

 

 

 

CLEAR VAR vpon
SET VAR vpon = pon FROM master WHERE cdiinv = .vinv#
IF vpon IS NULL THEN
  RUN errmsg.rmd USING 'Invoice Number Not found'
  GOTO loop
ENDIF

 

PRINT final_billing WHERE cdiinv = .vinv#

 

LABEL finish

 

 

 

RETURN

 

 

 

 

Stephen Breen

CDI Services, Inc.

Road Support Division

 

Reply via email to