اجعلها  أرقام   أو  اذ وجدنا الفرصة  نضيف في الكود ما سيجعلها أرقام
المهم الان في زر Browse-Folder
جرب :
	
بطاقة مقدرة  بــ   9999   ملف  صوتي   
المصدر
http://sites.ienajah.com/vb2/showthread.php?t=29167
بالتوفيــــق
							
						
					المهم الان في زر Browse-Folder
جرب :
كود PHP:
	
	
Browse = Dialog.FolderBrowse("Please select a folder:", "");
tip = {"*.mp3","*.mp4","*.rm"}
if Browse~="CANCEL" then
ListBox.DeleteItem("ListBox1", -1);for i= 1,#tip do
Find = File.Find(Browse, tip[i], false, false, nil, nil);
if Find~=nil then
for i, s in pairs(Find) do   
 -----------            
if String.ToNumber(String.SplitPath(s).Filename) < 10  then  ListBox.AddItem("ListBox1",string.format("a%d", String.SplitPath(s).Filename), s);
elseif String.ToNumber(String.SplitPath(s).Filename) >=10  then  ListBox.AddItem("ListBox1", string.format("b%d", String.SplitPath(s).Filename), s);
elseif String.ToNumber(String.SplitPath(s).Filename) >=100  then  ListBox.AddItem("ListBox1", string.format("c%d", String.SplitPath(s).Filename), s);
elseif String.ToNumber(String.SplitPath(s).Filename) >=1000  then  ListBox.AddItem("ListBox1", string.format("d%d", String.SplitPath(s).Filename), s);
end
tblListboxProps = {};tblListboxProps.Sort = true;ListBox.SetProperties ("ListBox1",tblListboxProps);
end;end;end;end  
if ListBox.GetCount("ListBox1") ~= 0  then
for v = 1,ListBox.GetCount("ListBox1") do
old = ListBox.GetItemText("ListBox1", v)                                                         
ListBox.SetItemText("ListBox1", v, String.Replace(old, string.format("%.1s", old), "", false));
end;end
-- 
المصدر
http://sites.ienajah.com/vb2/showthread.php?t=29167
بالتوفيــــق
							
						
							
						
							
						
							
						
							
						
تعليق