Results 1 to 6 of 6

Thread: Use of DO command in Lianja

  1. #1
    Senior Member
    Join Date
    Apr 2013
    Location
    Soledad, Atlántico, Colombia
    Posts
    117

    Use of DO command in Lianja

    In VFP uses the DO command for run (or call) a form or script.

    In VFP we must use the extensión
    Example

    DO FORM recibo.scx
    DO cobrar.prg


    My question is... In Lianja we must use the extensions?

    How is the correct way?

    Thanks

    Very much

    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

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

    You only need to specify the extension if it is not the default extension. So for DO the default extension is '.prg', for DO FORM, the default extension is '.scp'. Similarly, for SET CLASSLIB, the default extension is '.vcp'.

    Regards,

    Yvonne

  3. #3
    Senior Member
    Join Date
    Apr 2013
    Location
    Soledad, Atlántico, Colombia
    Posts
    117
    Thanks Yvonne.

    It means I can write DO with dbo extension?

    DO cobro
    DO cobro.dbo


    Is same?

    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

  4. #4
    Lianja Team yvonne.milne's Avatar
    Join Date
    Feb 2012
    Location
    Berkshire, UK
    Posts
    1,435
    Hi Victor,

    Yes.

    You have a script called cobro.prg and in your App you call it with 'do cobro'. In the App Builder this will look for cobro.prg and compile it if there is no cobro.dbo or if cobro.prg is more recent than cobro.dbo. In your deployed App in the App Center, this will look for cobro.dbo.

    Regards,

    Yvonne

  5. #5
    Senior Member
    Join Date
    Apr 2013
    Location
    Soledad, Atlántico, Colombia
    Posts
    117
    Well Yvonne.

    Then is same the use of these sentences:

    DO cobro
    DO cobro.prg
    DO cobro.dbo
    ?

    Isn't, then, wich is the diffference(s)?

    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
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    5,844
    In the desktop runtime client only compiled (.dbo, .vco, .sco) files are executed. Lianja will automatically strip off the source file extension and replace it with the compiled file extension.
    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

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