none
Oskariok Data Extension 0.9.0.9 question RRS feed

  • Question

  • On  a previus post I was trying to get the 'Dialogs.AskForFile to ask for a file in a specified directory. with feed back I was able to get the dialogbox to ask for files in the program directory.

    Path = program.directory

    Lc = path + "\Item Loc\"

    ItemLoc = Dialogs.AskForFile(Lc + "Location Files(*.txt)|*.txt")

    Question:

    Is there a way I can get the dialogbox path to look in a specified directory "path + \Item Loc\"  ? It seems that it will only go to the directory program path but not sub directory of the program path.

     

    Thanks,

    Steve

    Thursday, October 14, 2010 4:23 PM

Answers

  • You can't set initial directory for dialog. You only break your file filter with LC. But it is possible to add initial directory parameter to AskForFile function.

    Sorry My Bad English
    • Proposed as answer by Oskariok Friday, October 15, 2010 12:33 PM
    • Marked as answer by SFC123 Monday, October 18, 2010 2:43 AM
    Friday, October 15, 2010 12:31 PM

All replies

  • SFC123,

    From what I can tell we don't have a way of setting the initial directory for the dialog box.  This might be something that Oskariok could add.  I know that Visual Basic has a function that will do this.

    Jricestk


    Jricestk
    Friday, October 15, 2010 1:53 AM
    Answerer
  • You can't set initial directory for dialog. You only break your file filter with LC. But it is possible to add initial directory parameter to AskForFile function.

    Sorry My Bad English
    • Proposed as answer by Oskariok Friday, October 15, 2010 12:33 PM
    • Marked as answer by SFC123 Monday, October 18, 2010 2:43 AM
    Friday, October 15, 2010 12:31 PM