Results 1 to 7 of 7

Thread: Will complex VFP forms be supported

  1. #1
    Junior Member
    Join Date
    Nov 2012
    Posts
    15

    Will complex VFP forms be supported

    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

  2. #2
    Lianja Support Team lianjasupport's Avatar
    Join Date
    Feb 2012
    Location
    Boston USA, Wokingham UK
    Posts
    1,268
    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.

  3. #3
    Junior Member
    Join Date
    Nov 2012
    Posts
    15
    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

  4. #4
    Lianja Support Team lianjasupport's Avatar
    Join Date
    Feb 2012
    Location
    Boston USA, Wokingham UK
    Posts
    1,268
    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)

  5. #5
    Junior Member
    Join Date
    Nov 2012
    Posts
    15
    Thanks. I can confirm that it works with this code change.

  6. #6
    Junior Member
    Join Date
    Feb 2012
    Posts
    11
    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

  7. #7
    Lianja Support Team lianjasupport's Avatar
    Join Date
    Feb 2012
    Location
    Boston USA, Wokingham UK
    Posts
    1,268
    Hi Douglas,
    Make sure you have an App open, then drag and drop the pjx file into the 'Files' section of the Apps sidebar.

Tags for this Thread

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Journey into the Cloud
Join us