Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » ArrayCtrl Clear function
ArrayCtrl Clear function [message #17486] Sun, 17 August 2008 14:41 Go to previous message
TeCNoYoTTa is currently offline  TeCNoYoTTa
Messages: 138
Registered: July 2008
Location: Egypt
Experienced Member

i have a proplem when my program want to clear array ctrl in a funcion

this is the function

void Two_B_DN::Update_list() {
	list_items.GoEnd();
	client.URL("http://www.cisclub.com/tecno/2BDN/data.xml");
	pro.SetText("Please Wait Loading Data...");
	client.Method(HttpClient::METHOD_GET);
	client.AddHeaders("Cache-Control: max-age=0\r\n");
	String respond = client.Execute(pro);
	//String respond = LoadFile("data.xml");
	my_xml = ParseXML(respond)("root");
	//PromptOK("ana hena");
	list_items.Clear();
	//PromptOK("ana hena");
	for (int i=0;i<my_xml.GetCount();i++) {

		String title = my_xml[i]["title"][0].GetText();
		//PromptOK("ana hena");
		int status_index = StrInt(my_xml[i]["status"][0].GetText());
		int priorty_index =StrInt(my_xml[i]["priorty"][0].GetText());
		int person_index = StrInt(my_xml[i]["person"][0].GetText());
		//PromptOK("ana hena");
		String status = droplist_status.GetValue(status_index);

		String priorty = droplist_priorty.GetValue(priorty_index);
		String person = droplist_persons.GetValue(person_index);
		/*
		PromptOK(title);
		PromptOK(status);
		PromptOK(priorty);
		PromptOK(person);
		*/
		list_items.Add(title,status,priorty,person);

	}
	client.Close();
	pro.Close();
	list_items.SetCursor(0);
}


the first time i call it it works ok but the second time this error appears
http://img504.imageshack.us/img504/91/errorja7.jpg
this error happens

 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Remove column of arrayCtrl? ok!
Next Topic: empty array ctrl
Goto Forum:
  


Current Time: Thu May 09 10:00:00 CEST 2024

Total time taken to generate the page: 0.01846 seconds