Results 1 to 6 of 6

Thread: Can I execute VFP commands from JavaScript?

  1. #1

    Can I execute VFP commands from JavaScript?

    Can I execute VFP commands from JavaScript?

  2. #2
    Lianja Support Team lianjasupport's Avatar
    Join Date
    Feb 2012
    Location
    Boston USA, Wokingham UK
    Posts
    1,259
    Yes, you can use the execute(VFPcommandstring) function.

  3. #3
    Senior Member
    Join Date
    Apr 2012
    Location
    United Kingdom
    Posts
    657
    I've been trying all sorts of thing to get this to work but can't get a result.

    Could you give a very simple example on how this should be written, for say a VFP command of:

    wait window 'test'


    I want to do things such as:

    adjacency-list = oERD4Lianja.Get_adjacency_list_from_DBC('aim')

  4. #4
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,159
    Blog Entries
    22
    JavaScript has the Lianja system object built-in.

    Lianja.execute( "command" )
    var result = Lianja.evaluate( "expression" )
    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

  5. #5
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,159
    Blog Entries
    22
    As does PHP and Python.
    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

  6. #6
    Senior Member
    Join Date
    Apr 2012
    Location
    United Kingdom
    Posts
    657
    Thanks Barry,

    I was trying to use execute( "command" ) without the Lianja. part

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