![]() |
![]() |
| Paypal | FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
|||||||
| Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Temas de Hoy |
|
|
Herramientas | Buscar en Tema | Desplegado |
|
#17
|
|||
|
|||
|
Recibir como string un número pienso que resulta arriesgado
... de preferencia usar edición con mascara como TMaskEdit.En lugar de usar StrToInt o StrToFloat para convertir ALB_importe, mejor usar StrToIntDef o StrToFloatDef, Ej.: StrToFloatDef(ALB_importe,0); Esto garantiza que si ALB_importe no es un numero siempre se regresa 0.00 como importe ... Las funciones que no tienen Def generan la excepcion EConvertError. |
|
|
Temas Similares
|
||||
| Tema | Autor | Foro | Respuestas | Último mensaje |
| Diferencias entre real y extended | Delphius | Varios | 6 | 05-08-2008 02:10:37 |
| Key o Integer? | MaMu | Varios | 3 | 31-01-2008 22:47:57 |
| Float o Integer | Caral | Varios | 9 | 24-11-2006 10:23:31 |
| incompatible integer and extended | emiliu | Varios | 3 | 09-12-2005 19:45:16 |
| de String a Integer!! | kye_z | Varios | 2 | 20-11-2004 20:04:36 |
|