ZuperDuper
Programmer
Hello,
I have a form that displays the record that I am working on at the moment in a textbox called Picture1. I am accessing a datafile through a method in a different module.
Within the module I dim form1 as new form1, then
in the loop while not EOF() I do:
form1.picture1.text="my record"
at the end of the loop I call: windows.forms.application.doevents()
As I understand, this should allow me to see the form, and the textbox with refreshed values, but only form is refreshed while the program is running, and the textbox is blank. I check for values and they are changing with each record - a text string is assigned to the Picture1.text.
What am I missing?
You should never underestimate the predictability of stupidity.
I have a form that displays the record that I am working on at the moment in a textbox called Picture1. I am accessing a datafile through a method in a different module.
Within the module I dim form1 as new form1, then
in the loop while not EOF() I do:
form1.picture1.text="my record"
at the end of the loop I call: windows.forms.application.doevents()
As I understand, this should allow me to see the form, and the textbox with refreshed values, but only form is refreshed while the program is running, and the textbox is blank. I check for values and they are changing with each record - a text string is assigned to the Picture1.text.
What am I missing?
You should never underestimate the predictability of stupidity.