Sorry, the copy paste messed up the declarations The Delphi Function Declarations: function GetFileAttr (FileName : PChar ) : PChar; StdCall; function GetFileCount(DirPathName : PChar; SearchExt : PChar) : Integer; StdCall; function GetFileInfo( FileName : PChar; ArrayElement: PChar) : PChar; StdCall; function GetFileList (DirPathName : PChar; SearchStr : PChar) : PChar; StdCall; function GetFileSize (AFile : PChar) : PChar; StdCall; function GetVerInfo(FileName : PChar; NamedElement : PChar) : PChar; StdCall; function SetDelimiter (pcDelimit : PChar) : PChar; StdCall;
PChar returns to RBase can be as type TEXT, NOTE, or VARCHAR as the circumstances require. Maximum length of return values to RBase is limited to 32k (32767 data bytes plus null char). > -----Original Message----- > From: [email protected] [mailto:[email protected]] On Behalf Of MikeB > Sent: Wednesday, July 09, 2014 11:06 PM > To: RBASE-L Mailing List > Subject: [RBASE-L] - RE: Checking for the existence of PDF files? > > FileUtil.dll - Overview > > FileUtil.DLL is for RBase 7.6 and up users that provides a handfull of > useful file Information Utilities. > The FileUtil.dll is called using RBase DLCall function. > There are (7) seven functions the dll exports that are callable by > RBase. > The function declarations and return types are shown as they are > declared in Delphi Pascal. > All Delphi declarations are StdCall. > > The Delphi Function Declarations: > function GetFileAttr (FileName : PChar ) : PChar; StdCall; function > GetFileCount(DirPathName : PChar; SearchExt : PChar) : Integer; > StdCall; function GetFileInfo( FileName : PChar; ArrayElement: PChar) : > PChar; StdCall; function GetFileList (DirPathName : PChar; SearchStr : > PChar) : PChar; StdCall; function GetFileSize (AFile : PChar) : PChar; > StdCall; function GetVerInfo(FileName : PChar; NamedElement : PChar) : > PChar; StdCall; function SetDelimiter (pcDelimit : PChar) : PChar; > StdCall; PChar returns to RBase can be as type TEXT, NOTE, or VARCHAR > as the circumstances require. > Maximum length of return values to RBase is limited to 32k (32767 data > bytes plus null char). > > > www.byerley.net > > Then Select > Software > MiscUtils > FileUtils.zip > > > > -----Original Message----- > > From: [email protected] [mailto:[email protected]] On Behalf Of > > Michael J. Sinclair > > Sent: Wednesday, July 09, 2014 6:21 PM > > To: RBASE-L Mailing List > > Subject: [RBASE-L] - Checking for the existence of PDF files? > > > > Hi All, > > Is there a way to check to see if there are any PDF files (or any > > other specific extension) in a folder? or better yet get a count of > > the number of files based on a file extension in a folder? > > As of now, I capture the output of the DIR command and extract the > > information form the output. > > Is there a better way? > > Mike --- RBASE-L ================================================ TO POST A MESSAGE TO ALL MEMBERS: Send a plain text email to [email protected] (Don't use any of these words as your Subject: INTRO, SUBSCRIBE, UNSUBSCRIBE, SEARCH, REMOVE, SUSPEND, RESUME, DIGEST, RESEND, HELP) ================================================ TO SEE MESSAGE POSTING GUIDELINES: Send a plain text email to [email protected] In the message SUBJECT, put just one word: INTRO ================================================ TO UNSUBSCRIBE: Send a plain text email to [email protected] In the message SUBJECT, put just one word: UNSUBSCRIBE ================================================ TO SEARCH ARCHIVES: Send a plain text email to [email protected] In the message SUBJECT, put just one word: SEARCH-n (where n is the number of days). In the message body, place any text to search for. ================================================

