![]() |
![]() |
| Paypal | FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
#3
|
|||
|
|||
|
evento
en el evento key press puse :
(de cada descuento) procedure TVentArt.Descuento2KeyPress(Sender: TObject; var Key: Char); var desc2,total,totaldescontado: real; begin If Key = #13 then begin Cerrar.SetFocus; Descuento2.SetFocus; total:=strtofloat(totventa.text); desc2:=((strtofloat(descuento2.text))/100) + 1; totaldescontado:=(total/ desc2); totventa.Text:=floattostrF((totaldescontado),FFNumber,9,2); end else If Key = #27 then Descuento2.Clear else begin if not (Key in ['0'..'9',#8]) then Key := #0; end; end; pero cuando la cantidad tiene un "," se pone loca la suma. |
|
|
Temas Similares
|
||||
| Tema | Autor | Foro | Respuestas | Último mensaje |
| formula en dbgrid | federicorl | Varios | 4 | 07-08-2006 18:58:36 |
| FastReport: fórmula matemáticas. | Jose_Pérez | Impresión | 1 | 01-09-2005 13:20:37 |
| Formula en Firebird | jwmoreira | Firebird e Interbase | 4 | 17-05-2005 17:49:57 |
| Formula One con Fast Report | CARSOFT_AR | Impresión | 0 | 06-05-2005 18:20:11 |
| Campos calculados, fórmula | mariajoiz | Conexión con bases de datos | 8 | 10-06-2003 14:10:10 |
|