Page 1 of 1

error on variable

Posted: Wed Aug 23, 2006 12:17 am
by Silvio
I must make a little calc..

Sorry for my english,

I explain YOU:

1) the user must press a button of a number
2) the user must press the button of X
3) the user must press the button of a product

the procedure calc the total (quantity * the prize of each product )and then save on the listbox

then Each variable it must be annulled but it calc bad the second operation this variable calc numbers of quantity


the user can press only a button of a product and the procedure must calc the quantity egual to 1 with the prize of this product and then save on the listbox



If you want try to run my sample , the test is on www.fivegest.it/testc.zip


I hope YOU help me

Regards

Posted: Wed Aug 23, 2006 4:46 am
by Raymundo Islas M.
OK, Let's see if we can understand each other :)

The operations you plan to do, you must do it directly from the listbox, using the Add, Reduce, Clear buttons.

In this case, after you select an item save its price and by default 1 unit in the listbox, thus, you can manage later if the user wants to add some units more or otherwise reduce them.

I did it this way in this little app to fast food POS and it worked great !!

See the image and you'll find out is almost the same job you're doing.



Image


I really hope you have understood to me :D


Saludos

Posted: Wed Aug 23, 2006 11:08 am
by Silvio
yes
can you help me
Can you send me sample code ?

Regards