Alpha Video Training
Results 1 to 3 of 3

Thread: Holidays

  1. #1
    Member
    Real Name
    Bryan Strader
    Join Date
    Jul 2006
    Location
    Phoenix
    Posts
    54

    Default Holidays

    I am trying to get the current business days function to see my holiday table that was created in the datas main location on the server. However the function seems to be looking for the table on my local drive, is there a way around this? Thansk in advance to anyone with input.

    -Bryan

  2. #2
    Member
    Real Name
    Garry M Flanigan
    Join Date
    Jul 2004
    Location
    Melbourne, Australia
    Posts
    909

    Default Re: Holidays

    Assuming you have created a table in the current database of a_holidays, do something like as follows in your code:

    Code:
    dim cHolidayFile as c
    dim dNewDate as d
    cHolidayFile = :a5.Get_Path() +  "\a_holidays"
    dNewDate = add_bus_days( xxx , yyy , cHolidayFile)
    Obviously replace the xxx and yyy with appropriate stuff, but it is the third argument that makes the function use your defined holiday file.
    Hope this helps.

  3. #3
    Member
    Real Name
    Bryan Strader
    Join Date
    Jul 2006
    Location
    Phoenix
    Posts
    54

    Default Re: Holidays

    Thanks Garry, I will give that a try. i was looking for an app.path function of some sort.. this looks like it will do!

Similar Threads

  1. Holidays
    By Tom Cone Jr in forum Archived Wishlist
    Replies: 2
    Last Post: 09-10-2005, 06:40 AM
  2. Holidays - Best Practices?
    By Tom Cone Jr in forum Alpha Five Version 6
    Replies: 9
    Last Post: 09-09-2005, 01:50 PM
  3. I don't have any more holidays!
    By CALocklin in forum Alpha Five Version 5
    Replies: 5
    Last Post: 06-22-2003, 02:10 PM
  4. Holidays?
    By Jeff Moses in forum Alpha Five Version 5
    Replies: 1
    Last Post: 05-24-2003, 09:54 AM
  5. holidays
    By Edward F. Schulz in forum Alpha Five Version 4
    Replies: 12
    Last Post: 05-25-2002, 07:49 AM

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
  •