
Originally Posted by
major
Hi, can u explain a little more plz.
ok.. no Problem... this is how my Program goes.. it reads an Xml and called out all the label buttons and function stored in it....
i hard coded 4 item currently in item:
Code:
public int [] item=new int[100];
item[0]=11000;
item[1]=11001;
item[2]=11002;
item[3]=11003;
this items stored in Items ID which represent the Stuff i have in a store....
when the ID is key into the textField....
this will be seen on the textarea..
Code:
IF (textarea.getText()=11000)
{
toAppend="Coke"
cost="0.60"
textarea.setText(toAppend+"\n"+"cost")
}
IF (textarea.getText()=11001)
{
toAppend="Sprite"
cost="0.60"
textarea.setText(toAppend+"\n"+"cost")
}
IF my text area i display this 2 item and i wan to void off the last one(mean to delete one) how can i do it??
Bookmarks