Alpha Video Training
Results 1 to 3 of 3

Thread: Storing directory value in a variable

  1. #1
    Member
    Real Name
    Kartik Sivaraman
    Join Date
    Apr 2011
    Location
    Hamilton, Ontario
    Posts
    37

    Default Storing directory value in a variable

    I have an xbasic routine to create an inventory file.
    Once the file is created (very detailed and it works fine) I need to copy this file to another file
    which I create by using the user given date.
    Example: user enters inventory As of Date : 12/31/2012 or uses the date picker. Submit button gets the function going.

    I use cmonth, cyear and substr functions to create a file like Dec2012 which I store in a variable called TFILE

    Now the problem:
    When I try variable storage like
    TDIR = "C:\TEST\" i get the expected value error. (xbasic does like \ inside a quote).

    the \ value cannot be used inside a quote and try making it a character value.

    How do I create the name of the output file like TDIR+TFILE+".dbf"
    I have to use the \ inside the double quote but I can
    not do it without the error.

  2. #2
    Member
    Real Name
    Dave
    Join Date
    Jul 2012
    Location
    Southern California
    Posts
    621

    Default Re: Storing directory value in a variable

    Try this: TDIR = "C:\TEST\\"

  3. #3
    Member
    Real Name
    Kartik Sivaraman
    Join Date
    Apr 2011
    Location
    Hamilton, Ontario
    Posts
    37

    Default Re: Storing directory value in a variable

    Thank you indeed. That works.

Similar Threads

  1. Storing a Time Variable
    By JohnFabrega in forum Alpha Five Version 9 - Desktop Applications
    Replies: 8
    Last Post: 11-07-2011, 02:06 PM
  2. Storing Nulls instead of 0s
    By mmaisterrena in forum Application Server Version 10 - Web/Browser Applications
    Replies: 1
    Last Post: 04-24-2010, 01:19 PM
  3. Storing Sound
    By Kevin G. Timberlake in forum Alpha Five Version 9 - Desktop Applications
    Replies: 2
    Last Post: 12-03-2008, 01:46 PM
  4. Storing files on CD-R
    By Fred Beck in forum Alpha Five Version 4
    Replies: 2
    Last Post: 05-03-2004, 04:52 PM
  5. SAVING/STORING VALUES IN A VARIABLE & RESTORIN
    By Rawlings in forum Alpha Five Version 5
    Replies: 4
    Last Post: 03-08-2004, 04:54 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
  •