Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ADIR and ASORT for .NET ?
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01020162
Message ID:
01020948
Views:
21
I not develop in NET but I find the VFPToolKit for Net and there is a finction for ADIR(). Here is the code from there:
		/// <summary>
		/// Receives a file skeleton as a parameter and returns an array of files that match the skeleton.
		/// Example:
		/// string[] myArr;
		/// myArr = VFPToolkit.arrays.ADir("c:\\*.*");
		/// </summary>
		/// <param name="cFileSkeleton"></param>
		/// <returns></returns>
		public static string[] ADir(string cFileSkeleton)
		{
			string[] aFiles;
			string lcDrive = VFPToolkit.strings.SubStr(cFileSkeleton, 1,VFPToolkit.strings.RAt("\\", cFileSkeleton));
			string lcStem = VFPToolkit.strings.SubStr(cFileSkeleton, strings.RAt("\\", cFileSkeleton) + 1);
			aFiles = System.IO.Directory.GetFiles(lcDrive, lcStem);
			return aFiles;
		}		
*** UPDATE Please ignore it. I must learn not to put my nose in .... Just after i posted this message I realise that they use the same function. Sorry
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform