Hi Dennis!  Yep, that's one of the things I always do when converting old 
systems.
Programs can have a bunch of fillins or dialogs, and it's best to put them all 
on one
form.

Here's an example of code that pre-defines the variables that I will be 
gathering
(and unlike dialogs, they don't have to all be text), then calls up the form.  
In most
instances, the code to actually do the work is inside a button on that form, 
but you
could also have the processing code after the "edit using" command.

   -- These variables are on the InputWOSearch form
   SET VAR vfCount INT = 0, vCWhere TEXT = "limit = 0"
   SET VAR vfWO INT = NULL, vPickWO INT = NULL, vfPart TEXT = NULL, +
     vfCustPO TEXT = NULL, vfID INT = NULL, vBDate DATE = NULL

   EDIT USING InputWOSearch

   LABEL endprog
   CLEAR ALL VAR EXCEPT X%
   CLS
   RETURN

When I define forms that just gather user input, I always name my forms 
beginning
with the word "Input".   I am pre-defining all the variables that are located 
on the form,
but I also copy this into the "on before design" eep and you can also put them 
in the
"on before start" eep.

Then on the form itself, you just locate a bunch of Variable Edit controls for 
each thing
you are asking the user for.  If you want lists, either use Variable ComboBox 
or a
Variable ListBox.   In your "process" button, check that all the variables you 
expect
have a value.   I have some samples of that code too if you'd like.

Have fun!

Karen


 

-----Original Message-----
From: Hodges, Dennis <[email protected]>
To: RBASE-L Mailing List <[email protected]>
Sent: Tue, May 20, 2014 8:26 am
Subject: [RBASE-L] - Getting Started with Rbase - Forms


Although I have been programming for over 35 years, I am new to Rbase and need 
help with the following problem:

I inherited an old Rbase system which uses a menu to display various reports, 
and is using dialogs or popups to request variables for filtering the report.  
I 
want to place all of these variable requests onto a single form and just need a 
little help on how to call the form and reference form fields.

Dennis Hodges
[email protected]



 

Reply via email to