Results 1 to 5 of 5

Thread: VFP Date functions in Javascript

  1. #1
    Senior Member
    Join Date
    Jan 2014
    Posts
    351

    VFP Date functions in Javascript

    Hi Barry

    Understand the need to use Javascript for a mobile app.
    Would be very helpful if you could add the following VFP date functions to Javascript

    a. DATE()
    b. MONTH()
    c. YEAR()
    d. DAY()
    e. GOMONTH()
    f. DOW()
    g. CDOW()
    h. CMONTH()
    i. CTOD()
    j. DTOC()
    k. DTOS()

    In addition, an easy way to add /minus days from a given date is most helpful

    Thanks & Best Regards

  2. #2
    Lianja Support Team lianjasupport's Avatar
    Join Date
    Feb 2012
    Location
    Boston USA, Wokingham UK
    Posts
    1,259
    Hi Tek Hong,

    Yes that's a good idea. Simplifies things for VFP devs building web and mobile apps. I'll see about adding them into the LianjaWebFramework.

    Thanks for the suggestion.

  3. #3
    Member
    Join Date
    Feb 2012
    Location
    Earth.Europe.Germany.Bavaria.Obing
    Posts
    47
    Just for info,
    (since I'm also hacking around in some other tools): in Servoy the same question exists; the community built a wrapper for that:
    See http://www.visualfoxpro.com/ and there follow the link to the VFP2Servoy Toolkit or the language comparison with a lot of JS wrapper functions. Maybe they're helpful as a starting point.
    In Servoy, you program everything in JS (or extend JS with pure Java), there's no way to reuse any of your VFP code etc, therefor you need those wrappers even in Desktop apps.
    (if you wonder about that domainname: MS wasn't interested in that, Omar aquired it long time ago and just put it to good use )
    wOOdy

  4. #4
    Lianja Support Team lianjasupport's Avatar
    Join Date
    Feb 2012
    Location
    Boston USA, Wokingham UK
    Posts
    1,259
    That's useful.

    Many of the VFP functions are already implemented in JavaScript as documented here.
    http://www.lianja.com/resources/blog...a-html5-client

  5. #5
    Lianja MVP
    Join Date
    Feb 2012
    Location
    Berea, KY, USA
    Posts
    2,184
    Hi w00dy,

    I saw that some time ago, but haven't used it because it's not clear what the license is. Omar mentions putting it in the Servoy OS git repository, but that hasn't happened.

    Hank

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