" I converted the Quad to a WString because that is all that PowerCollections use."
I'm sure Micheal will appreciate making a small error bigger for him!
I'm sure Micheal will appreciate making a small error bigger for him!
DIR$ Loop to collect the DirData structures for target filename mask into array "DirDataArray()" ARRAY SORT DirDataArray() CALL SortRoutine FUNCTION SortRoutine (DataItem1 as DirData, DataItem2 AS DIRDATA) AS LONG LOCAL comparedate1 AS QUAD, compareDate2 AS QUAD Select CASE AS LONG HowToOrder ' howtoOrder = global var CASE %CreationDate ' program constant CompareDate1 = DataItem1.CreationTime CompareDate2 = DataItem2.CreationTime CASE %LastModfiedDate ' program constant CompareDate1 = DataItem1.LastWriteTime CompareDate2 = DataItem2.LastwriteTIme CASE %AccessDate ' program constant CompareDate1 = DataItem1.LastAccessTime CompareDate2 = DataItem2.LastAccessTime END SELECT IF CompareItem1 < CompareItem2 THEN FUNCTION = -1& ELSEIF CompareItem1 > CompareItem2 THEN FUNCTION = 1& ELSE ; must be equal FUNCTiON = 0 END IF END FUNCTION
DIR$ Loop to collect the DirData structures for target filename mask into array "DirDataArray()" ARRAY SORT DirDataArray() CALL SortRoutine FUNCTION SortRoutine (DataItem1 as DirData, DataItem2 AS DIRDATA) AS LONG LOCAL comparedate1 AS QUAD, compareDate2 AS QUAD Select CASE AS LONG HowToOrder ' howtoOrder = global var CASE %CreationDate ' program constant CompareDate1 = DataItem1.CreationTime CompareDate2 = DataItem2.CreationTime CASE %LastModfiedDate ' program constant CompareDate1 = DataItem1.LastWriteTime CompareDate2 = DataItem2.LastwriteTIme CASE %AccessDate ' program constant CompareDate1 = DataItem1.LastAccessTime CompareDate2 = DataItem2.LastAccessTime END SELECT IF CompareItem1 < CompareItem2 THEN FUNCTION = -1& ELSEIF CompareItem1 > CompareItem2 THEN FUNCTION = 1& ELSE ; must be equal FUNCTiON = 0 END IF END FUNCTION
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, and to analyze site activity. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.
Comment