Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create new project
Message
From
16/04/2018 14:02:51
 
 
To
16/04/2018 09:43:40
General information
Forum:
Visual FoxPro
Category:
FoxInCloud
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Network:
Windows Server 2012
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01659235
Message ID:
01659450
Views:
55
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform