>>I also realized, but I am not sure, that I should create a _SCREEN.Visible application instead of a VFP form with ShowWindow = 2. At first I did the latter, but then I realized that this is probably not a good idea. Correct me if I am wrong.
>
>This choice influences Deskop mode only, not Web mode.
>
>To show your form you'll use:
>
>- initial form (index):
>
>- desktop mode: do form index && as usual
> - web mode: implement xxxProcess.index() in {modify command xxxServer}
>
> - subsequent form(s): you use thisForm.wForm() which takes a different route whether it works in desktop or web mode
>
>The only form setting that influences Web mode is .WindowType (modal or not).
Thanks! One more question: I have now adapted the project, but there are three changes to be done manually, the first one I don't understand how to get further. I guess this is a crucial part in the process.
It is in the main.prg (as the name suggest the main entry point), which first does the settings and then opens the first form, which I typically do with a class (I got used to do everything in classes). Maybe I need to change all forms to SCX files?
In any case the original code is:
LOCAL loForm AS main OF App_form.vcx
loForm = NEWOBJECT("main","App_Form.vcx")
loForm.Show()
READ EVENTS
The adapter suggests to do the following:
Please replace form execution (DO FORM) or class creation and form show by a single call to FoxInCloud standard method thisForm.wForm() :
[choice = ] thisForm.wForm('form.scx', [<callBack method>][, t01,...,t20])
Following issues:
1) I do not have an scx. Maybe I should create one based on main?
2) I suppose I have to do a condition here, because the code is only working for web and not desktop?
3) I am in a prg and don't see a reference here for thisform.wForm. Does this mean I must startup the application in a different way?
I am thinking, once the first form is showing, the rest comes naturally.
Christian Isberner
Software Consultant