المشاركة الأصلية بواسطة ثامر أبو بلقيس
					
						
						
							
							
							
							
								
								
								
								
									مشاهدة المشاركة
								
							
						
					
				
				
			
		--------------------------------
بسم الله الرحمن الرحيم
شاهدت استاذي الكريم الكود
وهو يتعامل مع
buttons
hotspots
inputs
وحاولت اضافةListBoxالي الثلاثة
ليصبح الكود بهذا الشكل
preload
	
On Show------
	
------------------------
لكن للاسف ظهرتلي رسالة خطا
انه يوجد خطا في هذا السطر
	
ولم استطع معرفة اين الخطأ .......؟
موفق بإذن الله ... لك مني أجمل تحية .



							
						بسم الله الرحمن الرحيم
شاهدت استاذي الكريم الكود
وهو يتعامل مع
buttons
hotspots
inputs
وحاولت اضافةListBoxالي الثلاثة
ليصبح الكود بهذا الشكل
preload
كود PHP:
	
	
 if getvalues == 1 then
    but = Table.Count(buttons);
    start = 1
    while start <= but do
    Button.SetProperties(buttons[start], buttons[start + 1]);
    start = start + 2
    end
    inp = Table.Count(inputs);
    start = 1
    while start <= inp do
    Input.SetProperties(inputs[start], inputs[start + 1]);
    start = start + 2
    end
    hot = Table.Count(hotspots);
    start = 1
    while start <= hot do
    Input.SetProperties(hotspots[start], hotspots[start + 1]);
    start = start + 2
    end
   
    Lis = Table.Count(ListBox);
    start = 1
    while start <= Lis do
    Input.SetProperties(ListBox[start], ListBox[start + 1]);
    start = start + 2
    end
    end 
On Show------
كود PHP:
	
	
if getvalues == nil then
    obj = Page.EnumerateObjects();
    num = Table.Count(obj);
    vbuttons = 1
    vhotspots = 1
    vinputs = 1
    vListBox = 1
    buttons = {};
    hotspots = {};
    inputs = {};
    ListBox = {};
    start = 1
    while start <= num do
    obj1 = Table.Remove(obj, 1);
    type = Page.GetObjectType(obj1);
    if type == 0 then
    prop = Button.GetProperties(obj1);
    Table.Insert(buttons, vbuttons, obj1);
    Table.Insert(buttons, vbuttons + 1, prop);
    vbuttons = vbuttons + 2
    end
    if type == 7 then
    prop = Input.GetProperties(obj1);
    Table.Insert(inputs, vinputs, obj1);
    Table.Insert(inputs, vinputs + 1, prop);
    vinputs = vinputs + 2
    end
    if type == 8 then
    prop = Hotspot.GetProperties(obj1);
    Table.Insert(hotspots, vhotspots, obj1);
    Table.Insert(hotspots, vhotspots + 1, prop);
    vhotspots = vhotspots + 2
    end
    
    if type == 9 then
    prop = ListBox.GetProperties(obj1);
    Table.Insert(ListBox, vListBox, obj1);
    Table.Insert(ListBox, vListBox + 1, prop);
    vListBox = vListBox + 2
    end
    
    start = start + 1
    end
    getvalues = 1
    end 
لكن للاسف ظهرتلي رسالة خطا
انه يوجد خطا في هذا السطر
كود PHP:
	
	
prop = ListBox.GetProperties(obj1); 
موفق بإذن الله ... لك مني أجمل تحية .








 
							
						
تعليق