By variable I assume you mean the variable gnFile which is, as the name suggests, a numeric variable and holds the number of files found that match the skeleton. The filenames are held in the array gaFiles.
HTH John Weller 01380 723235 07976 393631 > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Sytze de Boer > Sent: 09 October 2008 06:38 > To: [EMAIL PROTECTED] > Subject: VFP9 - ADIR > > > I'm having a brain fade at the moment (senior moment ?) > > In an app of mine, i need to find certain files. > At design time, I may not know the location of these files, so I want to > store this to a variable > > In help, it says > gnfile = ADIR(gafiles, '*.DBC') > > In my case, this represents > gnfile = ADIR(gafiles, '*.JPG') > > Assume, the variable reads K:\FILELOC\*.JPG > I can't find a way for this to work > > SdB > > > > > > > > > > > > > > > -- > Regards > Sytze de Boer > Kiss Systems > Ph: 64-7-8391670, Mob:021 937611, > Skype: kissman2 > www.kiss.co.nz > > > --- StripMime Report -- processed MIME parts --- > multipart/alternative > text/plain (text body -- kept) > text/html > --- > [excessive quoting removed by server] _______________________________________________ Post Messages to: ProFox@leafe.com Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.