Page 1 of 3 123 LastLast
Results 1 to 10 of 21

Thread: Importing VFP form with a problem

  1. #1

    Importing VFP form with a problem

    I was able to import a vfp form with a button, that had a messagebox with a hello world message in the click event, but I added a grid linked to a dbf in my hard drive, and I wasn´t able to see the grid when I reimported the form.

  2. #2
    Lianja Team yvonne.milne's Avatar
    Join Date
    Feb 2012
    Location
    Berkshire, UK
    Posts
    1,842
    Hi Gerardo,

    If you Submit a Ticket and attach the scx/sct to the ticket we can take a look.

    Thanks,

    Yvonne

  3. #3
    Junior Member
    Join Date
    Apr 2012
    Posts
    24

    Suggestion

    Hi

    I also tested .scx importer.

    Looks like it's progressing, but seems far from achievement.

    I would like to suggest that Lianja team test several .scx forms with several components and codes including embedded activeX and dataenvironment.

    Only this way the importer project will succeed.

    Also, creating an automatic importer to import forms from a folder create a new lianja page from each of them.

    Moises


    Quote Originally Posted by yvonne.milne View Post
    Hi Gerardo,

    If you Submit a Ticket and attach the scx/sct to the ticket we can take a look.

    Thanks,

    Yvonne
    Last edited by ACRISOFT; 2013-05-10 at 12:06.

  4. #4
    Senior Member
    Join Date
    Apr 2013
    Location
    Soledad, Atlántico, Colombia
    Posts
    117
    When I imported a form.

    the scp file is a text file with all the properties and methods of any components.

    Its easy to understand!

    I have a doubt; Where is the FORM properties?
    If I need modify the form's properties and methods; how can I do it?

    Thanks

    Victor Navarro
    Barranquilla, COLOMBIA
    3008102508
    ICQ 279 364 380
    Face: +573008102508
    MSN: eres_un_vago@hotmail.com
    Mail: eres_un_vago@yahoo.es
    Whatsapp: +573008102508
    Skype: eres_un_vago
    PIN: 7A3F5E60

  5. #5
    Senior Member
    Join Date
    Apr 2013
    Location
    Soledad, Atlántico, Colombia
    Posts
    117
    Well, when I import a form, I can see any details in the description, but, how can I modify the methods and properties, but when run, yes they is it, but, if need change something, when is this data?

    Thanks again

    Victor Navarro
    Barranquilla, COLOMBIA
    3008102508
    ICQ 279 364 380
    Face: +573008102508
    MSN: eres_un_vago@hotmail.com
    Mail: eres_un_vago@yahoo.es
    Whatsapp: +573008102508
    Skype: eres_un_vago
    PIN: 7A3F5E60

  6. #6
    Member
    Join Date
    Apr 2019
    Location
    UK
    Posts
    44
    Greetings
    Just trying to get may head round a few things

    As a test I created a form in VFP, three buttons and a text box, buttons change text in text box on click(), very simple runs fine
    Opened Llainja, created a new desktop app (vfp)
    Select Import VFP form, choose form - message beautyfing code
    After a short pause Llainja crashes
    re launched and tried again and it says xyz.scp already exists do I want to overwrite it, if I do overwrite the same thing happens - Lianja crashes

    If I don't overwrite it, I can see a file under app files / forms called xyz.scp which I can open, and I can see the code with various classes defined
    I can run that and I can see the form running
    So the code is building the form on the fly - fine with that

    Apart from the crashing element ?
    I want to learn to replicate that form using the page builder

    I have a canvas and a commandbuton and a label controltype with a name of Field2 and a fullname of page1.section2.field2
    Could someone help me with the syntax to reference that... so as to change the label caption to "Something" ... in the click event of the commandbutton
    I did try page1.section2.field2.caption="Something" etc

    Also is there a good source of syntax information for referencing form controls etc

    Many Thanks

  7. #7
    Lianja Team yvonne.milne's Avatar
    Join Date
    Feb 2012
    Location
    Berkshire, UK
    Posts
    1,842
    We have had reports of some issues with vfp_beautify in the current version, this has been fixed in the forthcoming Lianja 5.0. For now, please do the following before importing your VFP project or files:

    Go to the Library workspace and edit the Script File vfp_import_xcx.prg and comment out lines 341 and 342, then save:

    //Lianja.showMessage("Beautifying code", 175)
    //vfp_beautify(m.cOutputFile)

    Regards,

    Yvonne

  8. #8
    Member
    Join Date
    Apr 2019
    Location
    UK
    Posts
    44
    Apart from the crashing element ?
    I want to learn to replicate that form using the page builder

    I have a canvas and a commandbuton and a label controltype with a name of Field2 and a fullname of page1.section2.field2
    Could someone help me with the syntax to reference that... so as to change the label caption to "Something" ... in the click event of the commandbutton
    I did try page1.section2.field2.caption="Something" etc

    Also is there a good source of syntax information for referencing form controls etc

    Many Thanks

  9. #9
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,165
    Blog Entries
    22
    There is a ton of documentation. Each forum has “Essentials” which will guide you.

    In this forum that you have posted you will see above “Development Essentials”. Click that and look at the Lianja object model.

    https://www.lianja.com/community/for...-UI-Essentials

    https://www.lianja.com/community/for...ent-Essentials

    Look in each forum at each Essentials and it will help get you up to speed.
    Last edited by barrymavin; 2019-04-11 at 10:28.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  10. #10
    Lianja Team yvonne.milne's Avatar
    Join Date
    Feb 2012
    Location
    Berkshire, UK
    Posts
    1,842
    (I was too slow, but some more links here)

    Use Lianja.get() or synonyms:

    Working with the Lianja Object Model

    Note that for Canvas Advanced Controls, you can use a unique name rather than a hierarchical name.

    There are some example Apps with Canvas Sections, including:

    Lianja Custom Canvas Demo (lianjcustomcanvas) (Desktop, Lianja/VFP)
    Lianja Canvas Section Web UI Demo (example_webapp3) (Web, JavaScript)

    Attributes Documentation

    Regards,

    Yvonne

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