Transformar un campo alfabetico

HMG en Español

Moderator: Rathinagiri

Post Reply
User avatar
danielmaximiliano
Posts: 2612
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Transformar un campo alfabetico

Post by danielmaximiliano »

Hola a todos:
modificando una aplicacion que ya tiene muchos años (unos 12) a medida que implemento un nuevo sistema GUI me encontre con un problema, me pidieron que se pueda buscar por Nro de Documento (D.N.I) que esta guardado como campo alfabetico.
Resulta que ese campo a sido usado para guardar cosas complementaria com ser L.E , C.U.I.T
, C.I, C.U.I.L, C.U.I.P y el D.N.I en diferentes formas de ingreso como "DNI:" "DNI" "D.N.I" y "dni".
Al no tener una estructura fija no se como implementar una solucion a este problema para sacar
el numero y poder crear un indice con el mismo.

RESUMIENDO: crear un un indice de ese campo conteniendo solo los numeros del D.N.I
PD: adjunto imagen

Google Translate
Hello everyone
modifying an application that already has many years (around 12) as they implement a new GUI I found a problem, I asked to be searched by Number of Document (DNI) as a field that is stored alphabetically.
It turns out that this area has been used to store additional things to be LE com , C.U.I.T
, C.I, C.U.I.L, C.U.I.P. and DNI in various forms of income as "DNI:" "DNI" "D.N.I" and "dni"
Not having a fixed structure is not how to implement a solution to this problem to get
the number and to create an index with it.

SUMMARY: create an index of the field containing only the D.N.I numbers of
PS: attached image
Saludos DaNiElMaXiMiLiAnO
Attachments
Formato.JPG
Formato.JPG (162.64 KiB) Viewed 3119 times
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
User avatar
dhaine_adp
Posts: 457
Joined: Wed Aug 06, 2008 12:22 pm
Location: Manila, Philippines

Re: Transformar un campo alfabetico

Post by dhaine_adp »

Hi Daniel,

You can create an index of that field even if they are not uniform in size.
The problem that you may have is that your search (DBSEEK()) might find an incorrect DNI depending on the setting of SOFTSEEK.

A better way is to assign a system generated number for each DNI. The drawback is that it will take a little time and modification to the table structure.

Regarding the system generated number, I bet you can design those number using barcodes interleave 2 of 9 or EAN 13. Combine the number Julian Days Number + Elapse Minute + Elapse second since midnight + Check Digit.

The advantage of that is that you can embed the barcode to the report or printed document. You can list all those barcodes in paper and retrieve by barcode scanner if you wish to.

Above all, the best thing is to have an offline version and run a test on those tables.

Regards,

Danny



By Google:

Hola Daniel,

Usted puede crear un índice de ese campo, incluso si no son uniformes en tamaño.
El problema que puede tener es que la búsqueda (DBSEEK ()) puede ser que encuentre una incorrecta DNI dependiendo de la configuración de SoftSeek.

Una mejor manera es asignar un número generado por el sistema para cada DNI. El inconveniente es que tendrá un poco de tiempo y la modificación a la estructura de la tabla.

En cuanto a la cantidad generada por el sistema, apuesto a que usted puede diseñar los número con código de barras intercalado 2 de 9 o EAN 13. Combine el número Julian Días Número + Minuto Cuando transcurra + Cuando transcurra segundos desde la medianoche + dígito de control.

La ventaja de esto es que se puede incrustar el código de barras para el informe o documento impreso. Puede crear una lista todos los códigos de barras en papel y recuperar por el escáner de código de barras si lo desea.

Por encima de todo, lo mejor es tener una versión en línea y realizar una prueba sobre las tablas.

Un cordial saludo,

Danny
Regards,

Danny
Manila, Philippines
User avatar
danielmaximiliano
Posts: 2612
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: Transformar un campo alfabetico

Post by danielmaximiliano »

Muchas gracias Danny por tus consejo, te comento que el campo de la tabla contiene datos concerniente a un numero identificatorio.
D.N.I. sigla que significa documento nacional de identidad
L.E. Libreta de enrrolamiento , ya no se usa mas en este pais desde hace años
C.I. cedula de identidad otorgada por la policia
C.U.I.T. codigo de identificacion tibutaria
C.U.I.L. codigo de identificacion laboral
C.U.I.P. codigo de identificacion personal que reeemplazara a cuit y cuil
en pascal manejaba una rutina que encontraba datos dento de un campo sin importar el formato del campo es un poco complejo ya que los indices los creaba a partir de esa informacion encontrada.

Google Translate
Danny thank you very much for your advice, I mention that the field of the table contains data relative to an identification number.
D.N.I. acronym for national identity
L.E. Enrrolamiento book, is not used more in this country for years
C.I. identity card issued by police
C.U.I.T. tibutaria identification code
C.U.I.L. job id code
C.U.I.P. personal identification code to change blinds and cuil cuit
pascal handled in a routine tooth found in a field data regardless of the format of the field is a bit complex as the indices created from this information found.
Saludos/regards
DaNiElMaXiMiLiAnO
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
Post Reply