2 quick suggestions. Move your file validation code into a form method and out 
of the init so you can call it any time. Add a form property to hold the 
validation state; you don't need global cars. Add buttons to the UI for 
reimporting/validating.

Wait that's 3 suggestions...

--
rk

-----Original Message-----
From: ProfoxTech [mailto:[email protected]] On Behalf Of Joe Yoder
Sent: Wednesday, January 22, 2014 2:31 PM
To: [email protected]
Subject: One form refresh

I have a single form project that validates information exported from another 
application.  When my code loads, the exported file is read, analysed, and its 
status is displayed.  When there are problems, the user will go back to the 
source application and make corrections and then do another export.

I would like to have a 'Refresh" button on the form to trigger processing of 
the new file.  The data analysis happen as the form is initialized and the 
results are store in properties of the form.  One approach might be to setup a 
global variable "Done", initialize it to false, and then setup a loop to call 
the form until "Done" is true.  The 'Exit" button would set "Done" to true and 
close the form while the "Refresh" button would simply close the form.

Is this a good approach or is there a better way?

Thanks in advance for any help,

Joe


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/DF1EEF11E586A64FB54A97F22A8BD04422A31456E6@ACKBWDDQH1.artfact.local
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to