I am trying to decide on the best way to run a form (.scp) regardless to whether the form is Modal or Modeless. The way the importer is now (and there is work to be done) is it generates code with CLASSES first followed by...
form1_??????? = createobject("form1")
form1_???????.show(1)
As discussed previously with Barry this works fine for Modal but not Modeless [i.e. show(0)] because classes go out of scope when program execution returns. The only way I can see right now to run either a Modal or Modeless form using the same program flow is remove the form creation from the SCP and then...
SET CLASSLIB TO "c:\Lianja\apps\app_name\form_name.scp" ADDITIVE
form1_??????? = createobject("form1")
form1_???????.show(0)
So my question is "Is this the best way or is there another/better way"? Is is possible that DO FORM can internally Set ClassLib, create the from object and then Release ClassLib. This would mean it would need to show the form based on WindowType.
Bookmarks