FoxInCloud
Adaptation errors
Gravatar is a globally recognized avatar based on your email address. Adaptation errors
  Paul
  All
  Aug 7, 2019 @ 05:14pm

Hi,

FYI, some issues during and after adapting my production code.

Automatic adaption problems :

  1. WAIT WINDOW tcText TIMEOUT (tlWait) is adapted to wWAIT(tcText TIMEOUT (tlWait), 'WINDOW')

.
After adaptation I attempt to rebuild the project :
1.

  1. the project hook introduced by FiC causes the problem, as it caches the class library and this cannot be closed while the project is open.
    I have removed the hook and will instead rely on the VFP startup command to run AB() etc.
    .

Paul

Gravatar is a globally recognized avatar based on your email address. re: Adaptation errors
  Vincent H.
  Paul
  Aug 8, 2019 @ 12:57am

The syntax seems incorrect.

This sould be wWait (tcText, 'WINDOW TIMEOUT tlWait')

Gravatar is a globally recognized avatar based on your email address. re: Adaptation errors
  FoxInCloud Support - Thierry N.
  Paul
  Aug 9, 2019 @ 02:04am

Hi Paul,

(1) is a "known issue": FAA does a pretty good job in parsing VFP code, however with less refinements than the VFP compiler.
We consider this a minor issue as it results in a compilation error that you can easily pin down and fix reading the adaptation log.

you need to expand the tlWait variable because it's out of wWait() scope: wWait(tcText, textmerge('WINDOW TIMEOUT <<cl(tlWait)>>'))

(2) should happen only after you modify a .h referenced in your project, a quite rare occurrence.
The project hook adds the ab\ folder to set("path"); if you think you can manage this yourself, you can just remove it.

Gravatar is a globally recognized avatar based on your email address. re: Adaptation errors
  Paul
  FoxInCloud Support - Thierry N.
  Aug 12, 2019 @ 09:05pm

FYI, another adaptation issue.

Sometimes, but not always, FAA puts the wlInitFirst code into the form's init above the lparameters statement :

&& Added by FoxInCloud Adaptation Assistant version 2.28 (source mode) on 08/08/2019 09:59:51
if m.this.wlInitFirst or m.this.wlLAN

&& Move here the code to be executed IN DESKTOP MODE and only when form is first instantiated IN WEB MODE:
&&  custom member initialization, BindEvent(member, 'event', thisform, 'method'), etc.
endif

if m.this.wlInitFirst
&& WEB MODE: form's initial instantiation; code below this block will later execute for each user of this form
return
endif
&& / Added by FoxInCloud Adaptation Assistant version 2.28 (source mode) on 08/08/2019 09:59:51

#define CONTROLAREA_RIGHTMARGIN 20

*--------------------------------------------------------------------
*--- ...various method comments...
*--------------------------------------------------------------------
lparameters TheFormID, TheSourceTable, SourceParameterArray, MakeNewRecordIfNone, MakeNewRecord, NewValuesArray, ReadOnlyForm, ControlsTableName, JustHideWhenOKCancel

...etc...

Perhaps the #define causes the problem.

Gravatar is a globally recognized avatar based on your email address. re: Adaptation errors
  FoxInCloud Support - Thierry N.
  Paul
  Aug 12, 2019 @ 10:20pm

Perhaps the #define causes the problem

Yes, we’ll try to cope with this case.

© 1996-2024