>Hi everybody,
>I am trying to invoke a form object with these lines of code. They are in a method. When I set the WindowType property, i thought that it would make the created form modal and that it would stop the rest of the method code. However, the form is appearing for a little while (the scope of the form object variable). Is there a way to stop the calling method code ?
>
>
>of = createobject("dispResform")
>of.gridisplay.columncount = 3
>of.gridisplay.recordsource = "grdcompagnies"
>of.gridisplay.column1.controlsource = "grdcompagnies.cNom"
>of.gridisplay.column1.Header1.caption = "Nom"
>of.gridisplay.column1.width = 300
>of.gridisplay.column2.controlsource = "grdcompagnies.cAdresse"
>of.gridisplay.column2.Header1.caption = "Adresse"
>of.gridisplay.column2.width = 300
>of.gridisplay.column2.controlsource = "grdcompagnies.cVille"
>of.gridisplay.column2.Header1.caption = "Ville"
>of.gridisplay.column2.width = 300
>of.gridisplay.recordsource = "grdcompagnies"
>of.gridisplay.width = of.width
>of.WindowType = 1
>of.visible = .T.
>
>
>Thank you,
>Christian
You cannot change the WindowType setting once the window has been displayed. Instead Set WindowType = 1 in the init event of the form.
JESS S. BANAGA
Project Leader - SDD division
...shifting from VFP to C#.Net
CHARISMA simply means: "Be more concerned about making others feel good about themselves than you are in making them feel good about you."