FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Temas de Hoy |
|
Herramientas | Buscar en Tema | Desplegado |
#1
|
|||
|
|||
Convierte de Numeros a Letras mas Decimales
//Edite: Para colocar etiquetas DELPHI. Última edición por Arturo_ fecha: 13-07-2007 a las 23:16:17. |
#2
|
||||
|
||||
Por favor, usa las etiquetas DELPHI, para que podamos apreciar mejor dicho codigo... Además, si quieres compartir tus tips de codigo con nosotros, sería muy interesante si lo colocaras en la sección de trucos del club.
__________________
Lecciones de mi Madre. Tema: modificación del comportamiento, "Pará de actuar como tu padre!" http://www.purodelphi.com/ http://www.nosolodelphi.com/ Última edición por jhonny fecha: 13-07-2007 a las 19:13:34. |
#3
|
||||
|
||||
En la sección de trucos ya existe uno:
http://www.clubdelphi.com/trucos/ind...ll=0&scrollb=0 De hecho, el que se puso originalmente, tiene una que otra falla. Por eso decidí colocar mi propuesta, pero nadie la ha comentado, la cuál es más compacta y con menos ciclos. pero bueno, yo no soy el experto. ------edito Arturo, ¿para que son estas unidades: Graphics, Controls, Forms, Dialogs, StdCtrls, ExtCtrls, ComCtrls, jpeg, Gauges, DateUtils ? No veo la definición de pmt_Type... Ni tampoco nada de lo que tienes como asm_*
__________________
Última edición por ContraVeneno fecha: 13-07-2007 a las 19:36:35. |
#4
|
||||
|
||||
Cita:
__________________
Lecciones de mi Madre. Tema: modificación del comportamiento, "Pará de actuar como tu padre!" http://www.purodelphi.com/ http://www.nosolodelphi.com/ |
#5
|
|||
|
|||
Arturo_
Las unidades incluidas son para otro tipo de trabajo lo que he hecho es extraer parte del codigo de un modulo de mis sistemas y la variable pmt_TYPE tiene su función estudialo y te daras cuenta
|
#6
|
|||
|
|||
Arturo_
Otra cosa en que parte de la sección trucos puedo insertar m codigo ha compartir ó lo pongo en foros.
|
#7
|
||||
|
||||
¿o sea que pmt_type y todo lo que tienes como asm_* lo tengo que declarar yo ?
__________________
|
#8
|
|||
|
|||
Arturo_
Mi estimado veneno esas variables eran de una versión anterior no tienes que declararlas si deseas las eliminas, y las unidades extras de la cabecera pertenecen a otras rutinas que no se encuentas en el Modulo SPLASH.
Claro esta que esta rutina de Converción funciona a la perfección la tengo instalada en varias empresas. |
#9
|
|||
|
|||
Amigo ContraVeneno pmt_TYPE si está declarada como parte de una función.
Lo que no veo por ningún lado son los asm_* seguro están declarados en otra de las unidades. Salud OS.
__________________
"La forma de empezar es dejar de hablar y empezar a hacerlo." - Walt Disney |
#10
|
|||
|
|||
Tenias razon
ya te puse los asm me los olvide disculpa ok.........
|
#11
|
||||
|
||||
Estoy tratando de probarlo, pero me marca error al querer compilarlo:
[Pascal Error] E1026 File not found: 'splash.DFM' en delphi 2006 Seguro esto no tiene nada que ver con el código y me esta faltanto habilitar alguna otra cosa, pero me declaro ignorante en este aspecto. ¿alguna idea?
__________________
|
#12
|
|||
|
|||
Error de compilación
Ese error se debe a que yo cree un modulo con una form, y esta rutina, la agregue al la form, lo que tienes que hacer es extraer el procedimiento y todas sus constantes y variables y copiarlo en uno tuyo y asi podras compilarlo sin errores.
|
#13
|
||||
|
||||
listo, ya quedó sí funciona.
Aunque me quedo con la versión que tengo porque en México sería "sesenta y cinco", no "sesenticinco". Saludos
__________________
|
#14
|
|||
|
|||
Arturo_
Pero eso es facil de modificar en la parte que dice + 'TI' en vez de sumar 'TI' suma ' Y' y listo.
Puedes modificar la rutina ya que tienes el codigo fuente de repente hasta la mejoras y me avisas. |
#15
|
||||
|
||||
Con los centavos de una vez tambien en letra:
Esta versión es con "SESENTA Y CINCO", no con "SESENTICINCO". Saludos
__________________
Última edición por ContraVeneno fecha: 23-10-2007 a las 23:34:30. |
#16
|
|||
|
|||
Convertidor de Numeros a Letras Modificado
//Edite: Para colocar etiquetas DELPHI. Última edición por Arturo_ fecha: 14-07-2007 a las 00:44:29. |
#17
|
|||
|
|||
Arturo_
Tu rutina esta bien, existen varias rutinas para hacer este tipo de trabajos de conversión claro esta que cada persona tiene su propia logica bueno es cuestion de opiniones.
nos vemos. |
|
|
Temas Similares | ||||
Tema | Autor | Foro | Respuestas | Último mensaje |
Convertir números en letras | c748a | Varios | 14 | 10-04-2015 20:52:18 |
Numeros y letras | Caral | Varios | 11 | 28-03-2008 18:22:53 |
Numeros En Letras | Cañones | Impresión | 2 | 11-06-2007 23:55:12 |
Numeros a Letras!! | jmedina | Varios | 26 | 20-10-2005 20:19:42 |
trasformar numeros a letras | NestorN | Varios | 1 | 17-09-2005 01:33:44 |
|