PDA

View Full Version : Will complex VFP forms be supported



assdassd
2012-12-03, 17:44
Ok, I created an empty new form with VFP. Opened my Lianja test app and draged the VFP file into the App section. Then opened the form via Lianja Console. So far so good. The form opens with no problem. Then I changed the background colour in VFP. Reimported: OK. :-)

However as soon as I put a single standard textbox or label on the form - No additional code - Lianja crashes with a Windows XP exception:

AppName: lianja.exe AppVer: 0.0.0.0 ModName: qtgui4.dll
ModVer: 4.8.2.0 Offset: 0005adc8

Basically the whole exercise of testing Lianja makes only sense if there is a substantial benefit of reusing existing VFP code, forms, etc.

Has anybody managed to migrate a rather complex VFP form to Lianja? How much work was it?

Or is Lianja just designed that you can re-use your programming knowledge and write code in VFP syntax?

Andreas

lianjasupport
2012-12-03, 20:19
Andreas, As we mention in the roadmap, there was an issue fixed in the importers. This however should not be causing any crash, so please attach the .scp file that was created when you did the import and we will take a look.

assdassd
2012-12-04, 11:49
Please see below:

************************************************** ******************************
*
* File created by Lianja Version 1.0.0 (beta10)
* Converted on 12/03/2012 at 17:33:47
*
************************************************** ******************************

Form1_3nq1198xa = createobject("Form1")

** Make the form visible.
Form1_3nq1198xa.show(1)


////////////////////////////////////////////////////////////////////////////////
define class Form1 as form

** Children
add object Text1 as textbox

** Properties
Top = 0
Left = 0
Height = 231
Width = 459
DoCreate = .T.
Caption = "Form1"
BackColor = rgb(255,255,0)
Name = "Form1"

enddefine


////////////////////////////////////////////////////////////////////////////////
define class textbox

** Properties
Height = 23
Left = 164
Top = 99
Width = 100
Name = "Text1"

enddefine

lianjasupport
2012-12-04, 11:59
It was the redefine of the Textbox system class that was causing the crash. The converters will now define this as a separate class - something along these lines, which works in the forthcoming RC1 release:

define class text1 as textbox


** Properties
Height = 23
Left = 164
Top = 99
Width = 100
Name = "Text1"


enddefine
***************
define class Form1 as form


** Children
add object Text1 as text1


** Properties
Top = 0
Left = 0
Height = 231
Width = 459
DoCreate = .T.
Caption = "Form1"
BackColor = rgb(255,255,0)
Name = "Form1"


enddefine


Form1_3nq1198xa = createobject("Form1")


** Make the form visible.
Form1_3nq1198xa.show(1)

assdassd
2012-12-05, 07:16
Thanks. I can confirm that it works with this code change.

douglasg76
2012-12-10, 12:31
Hello, Lianja support team, I m trying to migrate to Lianja, but when I drop my *.pjx onto "Apps" panel in the "Apps" workspace, but Nothing happens, What am I doing wrong?
Thank
Douglas.Sanchez

lianjasupport
2012-12-10, 12:36
Hi Douglas,
Make sure you have an App open, then drag and drop the pjx file into the 'Files' section of the Apps sidebar.