Hi there could anyone please give a simple example of how to use the indicator control.
I have a blank form with some buttons which will trigger some processing.
e.g. I will be looping through the customer table and modifying some data and I would like to place an indicator on the form and have it display the progress of the processing.
any help would be appreciated
thanks
0
Comments
//Window is a variable of type dialog, icount is an integer
Window.open('Processing customer #1######, #2###### of #3######');
window.update(3,customer.count); //control 3 is the total count of the records you are scrolling through
icount := 0;
//filters
if customer.findfirst then repeat
icount := icount + 1;
window.update(1,customer."no."); //update this control with the customer no
window.update(2,count); //update this control with the current count
//all of your other processing
until customer.next = 0;
window.close;
-a
do the following
declare 3 variables:
window of type dialog
TotalRec of type integer
CurRec of type integer
in OnPreDataItem in AfterGetRecord in OnPostDataItem
Whatever processing you are doing it's going to have to:
Get a record
Do something with the record
http://www.BiloBeauty.com
http://www.autismspeaks.org
RIS Plus, LLC
If I give you the scenario that I want to loop through all the customer records and using a record variable called recCustomers and a counter variable called intCount. Using the code below how can I get the indicator control to work?
intCount:=0;
recCustomers.init;
IF recCustomers.FIND('-') THEN BEGIN
REPEAT
intCount:=intCount + 1;
UNTIL recCustomers.Next=0;
END;
Do I set the SourceExpr to intCount? And how do I set minValue, maxValue?
RIS Plus, LLC
RIS Plus, LLC