Results 1 to 3 of 3

Thread: Best Way to Run a Form

  1. #1
    Member
    Join Date
    Feb 2012
    Location
    Ontario, Canada
    Posts
    98

    Best Way to Run a Form

    I am trying to decide on the best way to run a form (.scp) regardless to whether the form is Modal or Modeless. The way the importer is now (and there is work to be done) is it generates code with CLASSES first followed by...

    form1_??????? = createobject("form1")
    form1_???????.show(1)

    As discussed previously with Barry this works fine for Modal but not Modeless [i.e. show(0)] because classes go out of scope when program execution returns. The only way I can see right now to run either a Modal or Modeless form using the same program flow is remove the form creation from the SCP and then...

    SET CLASSLIB TO "c:\Lianja\apps\app_name\form_name.scp" ADDITIVE
    form1_??????? = createobject("form1")
    form1_???????.show(0)

    So my question is "Is this the best way or is there another/better way"? Is is possible that DO FORM can internally Set ClassLib, create the from object and then Release ClassLib. This would mean it would need to show the form based on WindowType.

  2. #2
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,183
    Blog Entries
    22
    I'm working through the tickets one by one. Give me a chance to revisit this. I had mentioned on the forums what i intend to do withe the importer. Its on my list and the list is getting shorter.
    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

  3. #3
    Senior Member
    Join Date
    Apr 2013
    Location
    Soledad, Atlántico, Colombia
    Posts
    117
    Wich is the way to run a form??

    And; how can call a form in console or debug.

    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

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