AndyK
December 18th, 1999, 03:15 AM
Ok, I have this code in my Form_Unload
Call ComboSave
Open Text3.Text for Output as #1
print #1, Form2.Text1.Text
Close #1
Text3.text is just a file name;
ComboSave is a function in module which finds the string in form2.text1.text and replaces it depending on what was in text6 for eg. if text6 ="//Flat 45" then ComboSave would change string in form2.text1.text to "//Flat 45"
Now the problem is that first it writes to a file then it calls ComboSave and changes string to "//Flat 45" in form2.text1.text but I need it to change string in form2.text1.text to "//Flat 45" before it saves to the file so the change would be saved also. Is there anyway to pause writing to file so that ComboSave function can finish the changes in form2.text1.text and after every change had been made, writing to file would start.
Hope that wasn't really confusing, but if it was then please tell me what I should explain detailed, because this procedure is vital to my project.
Thank You
Call ComboSave
Open Text3.Text for Output as #1
print #1, Form2.Text1.Text
Close #1
Text3.text is just a file name;
ComboSave is a function in module which finds the string in form2.text1.text and replaces it depending on what was in text6 for eg. if text6 ="//Flat 45" then ComboSave would change string in form2.text1.text to "//Flat 45"
Now the problem is that first it writes to a file then it calls ComboSave and changes string to "//Flat 45" in form2.text1.text but I need it to change string in form2.text1.text to "//Flat 45" before it saves to the file so the change would be saved also. Is there anyway to pause writing to file so that ComboSave function can finish the changes in form2.text1.text and after every change had been made, writing to file would start.
Hope that wasn't really confusing, but if it was then please tell me what I should explain detailed, because this procedure is vital to my project.
Thank You