error on variable

error on variable

Postby Silvio » Wed Aug 23, 2006 12:17 am

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
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Postby Raymundo Islas M. » Wed Aug 23, 2006 4:46 am

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
FWH 10.6 + xHarbour + Borland 582
User avatar
Raymundo Islas M.
 
Posts: 592
Joined: Tue Mar 14, 2006 11:34 pm
Location: Acapulco, Gro. MEXICO

Postby Silvio » Wed Aug 23, 2006 11:08 am

yes
can you help me
Can you send me sample code ?

Regards
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 77 guests