Tree

HMG en Español

Moderator: Rathinagiri

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

Tree

Post by danielmaximiliano »

Hi, I have a form with a TREE, which charge a field called "bpolizan" is numeric 10 length.
A display in the Tree, it does not have the same length to make.
try PADR and the result is the same. abideth not in the same column
that failure??

Hola: tengo un formulario con un TREE, en el cual cargo un campo llamado "bpolizan", es numerico 10 de longitud.
al mostrar en el TREE, el mismo no tiene la misma longitud al convertirlo.
intente con PadR y el resultado es el mismo. no queda en la misma columna
en que fallo ????

Code: Select all

nRecno := Recno()
               cPoliza :=  Replicate("-",10 - Len(Ltrim(str(bpolizan))))+ Ltrim(Str(bPolizan))
               main.Polizas.AddItem( "Poliza : " + cPoliza ,  nAsegurado  ,{'Cerrar.bmp','Abrir.bmp'}, nRecno ) 
Attachments
Consultas de Polizas por Nº NIP_2012-02-03_19-09-46.png
Consultas de Polizas por Nº NIP_2012-02-03_19-09-46.png (68.03 KiB) Viewed 2914 times
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
User avatar
salamandra
Posts: 311
Joined: Thu Jul 31, 2008 8:33 pm
DBs Used: DBF, MySQL, SQL
Location: Brazil

Re: Tree

Post by salamandra »

Hi Daniel,
The TTF font that you are using it´s not a font with fixed size.
Try using another TTF font file ie. COURIER.
Please take a look at the attached samples:
File 01 = Using font Arial, size 9
01.JPG
01.JPG (35.39 KiB) Viewed 2900 times
File 02 = Using font Courier size 9
02.JPG
02.JPG (36.75 KiB) Viewed 2900 times

[]´s Salamandra.




Hola Daniel,
El problema parece ser que el TTF que estas usando no tiene un tamanho fijo
Intenta usar otro TTF, por ejemplo COURIER.
Da una ojeada en los ejemplos :
Archivo 01 = Usa font Arial, size 9
01.JPG
01.JPG (35.39 KiB) Viewed 2900 times
Archivo 02 = Usa font Courier size 9
02.JPG
02.JPG (36.75 KiB) Viewed 2900 times
[]´s Salamandra.
There is one time in which is crucial awakening. That time is now. ( Buddha )
User avatar
danielmaximiliano
Posts: 2611
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: Tree

Post by danielmaximiliano »

Salamandra :
Hi Daniel,
The TTF font that you are using it´s not a font with fixed size.
thank you very much for the data
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

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