SPONSORS:






User Tag List

Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Apr 2001
    Location
    Montreal, CA
    Posts
    74
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    What is Wrong with this FileInfo Routine

    Hi All,
    [ ] //returns list of directories from the target directory as List of String
    [-] List of STRING lsDirectoryList(String sDirectoryToSearch)
    [ ] LIST OF FILEINFO lfFiles
    [ ] INTEGER iCount
    [ ] List of String lsDirList
    [ ] String sName
    [ ] lfFiles = SYS_GetDirContents (Trim(sDirectoryToSearch))
    [-] if (!(ListCount (lfFiles) == 0))
    [-] for iCount = 1 to ListCount (lfFiles)
    [-] if (!lfFiles[iCount].bIsDir)
    [ ] sName="{lfFiles.sName}"
    [ ] ListAppend(lsDirList,sName)
    [ ] return lsDirList
    I am getting message "Expecting a record or window

    Another one, I couldn't figure out how you all post the properly formatted code.

    Thanks
    ___________________
    Murali K Parepalli
    Intuit

    [This message has been edited by aspmurali (edited 03-18-2003).]
    _ _ ___________ _ _
    Murali K Parepalli

  2. #2
    Senior Member
    Join Date
    Aug 2001
    Location
    Manchester, NH
    Posts
    121
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: What is Wrong with this FileInfo Routine

    just forgot the index for lfFiles in sName="{lfFiles[iCount].sName}". You just have to have UBB Code on, and use the correct tag. Look up the UBB help.


    ------------------
    Adam Kuczkowski
    akuczkowski@frametech.com

  3. #3
    Senior Member
    Join Date
    Aug 2001
    Location
    Manchester, NH
    Posts
    121
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: What is Wrong with this FileInfo Routine

    oh, and as currently configured, this function returns the files in a dir, not the the folders.

    ------------------
    Adam Kuczkowski
    akuczkowski@frametech.com

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 12:46 PM.

Copyright BetaSoft Inc.