In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

column content got trimmed

Xailer professional forum in English
Responder
david fung
Mensajes: 257
Registrado: Mié Jul 19, 2006 8:48 am

column content got trimmed

Mensaje por david fung »

For a oGridEdit:lTrimSpaces (within TArrayBrwColumn) property
1. where can I assign it to .f. so that it won't do a trimspaces
2. what is the syntax
i.e. ArrayBrowse:aCols[1]:oGridEdit:lTrimspaces := .f.
The problem is that the value of a character column in a TArrayBrowse
object always got RTRIMed, it is not in Xailer 1.99
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9440
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

column content got trimmed

Mensaje por ignacio »

David,
oCol:OnGridEditCreate
Regards,
--
Ignacio Ortiz de Zúñiga
Xailer support / Soporte de Xailer
http://www.xailer.com
http://www.xailer.info
"david fung" <david@atriumtec.com> escribió en el mensaje
news:[email=4a11c51d@svctag-j7w3v3j....]4a11c51d@svctag-j7w3v3j....[/email]
>
> For a oGridEdit:lTrimSpaces (within TArrayBrwColumn) property
>
> 1. where can I assign it to .f. so that it won't do a trimspaces
> 2. what is the syntax
> i.e. ArrayBrowse:aCols[1]:oGridEdit:lTrimspaces := .f.
>
> The problem is that the value of a character column in a TArrayBrowse
> object always got RTRIMed, it is not in Xailer 1.99
>
>
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9440
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

column content got trimmed

Mensaje por ignacio »

David,
oCol:OnGridEditCreate
Regards,
--
Ignacio Ortiz de Zúñiga
Xailer support / Soporte de Xailer
http://www.xailer.com
http://www.xailer.info
"david fung" <david@atriumtec.com> escribió en el mensaje
news:[email=4a11c51d@svctag-j7w3v3j....]4a11c51d@svctag-j7w3v3j....[/email]
>
> For a oGridEdit:lTrimSpaces (within TArrayBrwColumn) property
>
> 1. where can I assign it to .f. so that it won't do a trimspaces
> 2. what is the syntax
> i.e. ArrayBrowse:aCols[1]:oGridEdit:lTrimspaces := .f.
>
> The problem is that the value of a character column in a TArrayBrowse
> object always got RTRIMed, it is not in Xailer 1.99
>
>
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
david fung
Mensajes: 257
Registrado: Mié Jul 19, 2006 8:48 am

column content got trimmed

Mensaje por david fung »

Is there any way to set Xailer 2 not to rtrim a column content as seen
in attached capture. Xailer 1.99 does not rtrim. Sample attached.
David
david fung wrote:
>
> For a oGridEdit:lTrimSpaces (within TArrayBrwColumn) property
>
> 1. where can I assign it to .f. so that it won't do a trimspaces
> 2. what is the syntax
> i.e. ArrayBrowse:aCols[1]:oGridEdit:lTrimspaces := .f.
>
> The problem is that the value of a character column in a TArrayBrowse
> object always got RTRIMed, it is not in Xailer 1.99
>
--
david fung
Mensajes: 257
Registrado: Mié Jul 19, 2006 8:48 am

column content got trimmed

Mensaje por david fung »

Is there any way to set Xailer 2 not to rtrim a column content as seen
in attached capture. Xailer 1.99 does not rtrim. Sample attached.
David
david fung wrote:
>
> For a oGridEdit:lTrimSpaces (within TArrayBrwColumn) property
>
> 1. where can I assign it to .f. so that it won't do a trimspaces
> 2. what is the syntax
> i.e. ArrayBrowse:aCols[1]:oGridEdit:lTrimspaces := .f.
>
> The problem is that the value of a character column in a TArrayBrowse
> object always got RTRIMed, it is not in Xailer 1.99
>
--
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9440
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

column content got trimmed

Mensaje por ignacio »

David,
Test it with Xailer 1.9 and it also trimms the column data.
This code: msginfo( Len( ::oArrayBrowse1:aCols[1 ]:Value ) ) returns 3
This code:
METHOD ArrayBrowse1Column1Exit( oSender, oGridEdit, oNextCtl ) CLASS TForm1
logdebug( Len( oGridEdit:Value ) )
RETURN Nil
Also returns 3.
AND THIS CODE:
METHOD ArrayBrowse1Create( oSender ) CLASS TForm1
local aData
aData := ::oDbfDataSet1:Struct()
oSender:SetArray( aData )
logdebug( Len( aData[1,1] ) )
RETURN Nil
ALSO RETURNS 3 ON XAILER 1.9
As you can see I am accessing directly the array returned by the DBStruct()
function.
Regards,
--
Ignacio Ortiz de Zúñiga
Xailer support / Soporte de Xailer
http://www.xailer.com
http://www.xailer.info
"david fung" <"david[NO_SPAM]"@atriumtec.com> escribió en el mensaje
news:[email=4a1542b0@svctag-j7w3v3j....]4a1542b0@svctag-j7w3v3j....[/email]
> Is there any way to set Xailer 2 not to rtrim a column content as seen
> in attached capture. Xailer 1.99 does not rtrim. Sample attached.
>
> David
>
>
>
> david fung wrote:
>>
>> For a oGridEdit:lTrimSpaces (within TArrayBrwColumn) property
>>
>> 1. where can I assign it to .f. so that it won't do a trimspaces
>> 2. what is the syntax
>> i.e. ArrayBrowse:aCols[1]:oGridEdit:lTrimspaces := .f.
>>
>> The problem is that the value of a character column in a TArrayBrowse
>> object always got RTRIMed, it is not in Xailer 1.99
>>
>
>
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9440
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

column content got trimmed

Mensaje por ignacio »

David,
Test it with Xailer 1.9 and it also trimms the column data.
This code: msginfo( Len( ::oArrayBrowse1:aCols[1 ]:Value ) ) returns 3
This code:
METHOD ArrayBrowse1Column1Exit( oSender, oGridEdit, oNextCtl ) CLASS TForm1
logdebug( Len( oGridEdit:Value ) )
RETURN Nil
Also returns 3.
AND THIS CODE:
METHOD ArrayBrowse1Create( oSender ) CLASS TForm1
local aData
aData := ::oDbfDataSet1:Struct()
oSender:SetArray( aData )
logdebug( Len( aData[1,1] ) )
RETURN Nil
ALSO RETURNS 3 ON XAILER 1.9
As you can see I am accessing directly the array returned by the DBStruct()
function.
Regards,
--
Ignacio Ortiz de Zúñiga
Xailer support / Soporte de Xailer
http://www.xailer.com
http://www.xailer.info
"david fung" <"david[NO_SPAM]"@atriumtec.com> escribió en el mensaje
news:[email=4a1542b0@svctag-j7w3v3j....]4a1542b0@svctag-j7w3v3j....[/email]
> Is there any way to set Xailer 2 not to rtrim a column content as seen
> in attached capture. Xailer 1.99 does not rtrim. Sample attached.
>
> David
>
>
>
> david fung wrote:
>>
>> For a oGridEdit:lTrimSpaces (within TArrayBrwColumn) property
>>
>> 1. where can I assign it to .f. so that it won't do a trimspaces
>> 2. what is the syntax
>> i.e. ArrayBrowse:aCols[1]:oGridEdit:lTrimspaces := .f.
>>
>> The problem is that the value of a character column in a TArrayBrowse
>> object always got RTRIMed, it is not in Xailer 1.99
>>
>
>
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
david fung
Mensajes: 257
Registrado: Mié Jul 19, 2006 8:48 am

column content got trimmed

Mensaje por david fung »

Ignacio,
Can you attach your debugged sample here, I don't quite get the point.
Thanks.
David Fung
Ignacio Ortiz de Zúñiga wrote:
> David,
>
> Test it with Xailer 1.9 and it also trimms the column data.
>
> This code: msginfo( Len( ::oArrayBrowse1:aCols[1 ]:Value ) ) returns 3
>
> This code:
>
> METHOD ArrayBrowse1Column1Exit( oSender, oGridEdit, oNextCtl ) CLASS TForm1
>
> logdebug( Len( oGridEdit:Value ) )
>
> RETURN Nil
>
> Also returns 3.
>
> AND THIS CODE:
>
> METHOD ArrayBrowse1Create( oSender ) CLASS TForm1
>
> local aData
>
> aData := ::oDbfDataSet1:Struct()
>
> oSender:SetArray( aData )
> logdebug( Len( aData[1,1] ) )
>
> RETURN Nil
>
> ALSO RETURNS 3 ON XAILER 1.9
>
> As you can see I am accessing directly the array returned by the DBStruct()
> function.
>
>
> Regards,
>
david fung
Mensajes: 257
Registrado: Mié Jul 19, 2006 8:48 am

column content got trimmed

Mensaje por david fung »

Ignacio,
Can you attach your debugged sample here, I don't quite get the point.
Thanks.
David Fung
Ignacio Ortiz de Zúñiga wrote:
> David,
>
> Test it with Xailer 1.9 and it also trimms the column data.
>
> This code: msginfo( Len( ::oArrayBrowse1:aCols[1 ]:Value ) ) returns 3
>
> This code:
>
> METHOD ArrayBrowse1Column1Exit( oSender, oGridEdit, oNextCtl ) CLASS TForm1
>
> logdebug( Len( oGridEdit:Value ) )
>
> RETURN Nil
>
> Also returns 3.
>
> AND THIS CODE:
>
> METHOD ArrayBrowse1Create( oSender ) CLASS TForm1
>
> local aData
>
> aData := ::oDbfDataSet1:Struct()
>
> oSender:SetArray( aData )
> logdebug( Len( aData[1,1] ) )
>
> RETURN Nil
>
> ALSO RETURNS 3 ON XAILER 1.9
>
> As you can see I am accessing directly the array returned by the DBStruct()
> function.
>
>
> Regards,
>
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9440
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

column content got trimmed

Mensaje por ignacio »

David,
I am afraid I do not have the sample anymore, I revert the changes since it
was the sample BrowsesBrwEdit.xpj.
BTW, is really easy to do:
Create a new button on firs folder and attach the first code on its OnClick
event:
msginfo( Len( ::oArrayBrowse1:aCols[1 ]:Value ) )
On ArrayBrowse1 first column overload OnExit event with this code:
METHOD ArrayBrowse1Column1Exit( oSender, oGridEdit, oNextCtl ) CLASS TForm1
logdebug( Len( oGridEdit:Value ) )
RETURN Nil
On event ArrayBrowse1:OnCreate attach this code:
METHOD ArrayBrowse1Create( oSender ) CLASS TForm1
local aData
aData := ::oDbfDataSet1:Struct()
logdebug( Len( aData[1, 1 ] ) )
oSender:SetArray( aData )
RETURN Nil
Regards,
--
Ignacio Ortiz de Zúñiga
Xailer support / Soporte de Xailer
http://www.xailer.com
http://www.xailer.info
"david fung" <david@atriumtec.com> escribió en el mensaje
news:4a1570ec$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
> Ignacio,
>
> Can you attach your debugged sample here, I don't quite get the point.
> Thanks.
>
> David Fung
>
>
>
>
> Ignacio Ortiz de Zúñiga wrote:
>> David,
>>
>> Test it with Xailer 1.9 and it also trimms the column data.
>>
>> This code: msginfo( Len( ::oArrayBrowse1:aCols[1 ]:Value ) ) returns 3
>>
>> This code:
>>
>> METHOD ArrayBrowse1Column1Exit( oSender, oGridEdit, oNextCtl ) CLASS
>> TForm1
>>
>> logdebug( Len( oGridEdit:Value ) )
>>
>> RETURN Nil
>>
>> Also returns 3.
>>
>> AND THIS CODE:
>>
>> METHOD ArrayBrowse1Create( oSender ) CLASS TForm1
>>
>> local aData
>>
>> aData := ::oDbfDataSet1:Struct()
>>
>> oSender:SetArray( aData )
>> logdebug( Len( aData[1,1] ) )
>>
>> RETURN Nil
>>
>> ALSO RETURNS 3 ON XAILER 1.9
>>
>> As you can see I am accessing directly the array returned by the
>> DBStruct() function.
>>
>>
>> Regards,
>>
>
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9440
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

column content got trimmed

Mensaje por ignacio »

David,
I am afraid I do not have the sample anymore, I revert the changes since it
was the sample BrowsesBrwEdit.xpj.
BTW, is really easy to do:
Create a new button on firs folder and attach the first code on its OnClick
event:
msginfo( Len( ::oArrayBrowse1:aCols[1 ]:Value ) )
On ArrayBrowse1 first column overload OnExit event with this code:
METHOD ArrayBrowse1Column1Exit( oSender, oGridEdit, oNextCtl ) CLASS TForm1
logdebug( Len( oGridEdit:Value ) )
RETURN Nil
On event ArrayBrowse1:OnCreate attach this code:
METHOD ArrayBrowse1Create( oSender ) CLASS TForm1
local aData
aData := ::oDbfDataSet1:Struct()
logdebug( Len( aData[1, 1 ] ) )
oSender:SetArray( aData )
RETURN Nil
Regards,
--
Ignacio Ortiz de Zúñiga
Xailer support / Soporte de Xailer
http://www.xailer.com
http://www.xailer.info
"david fung" <david@atriumtec.com> escribió en el mensaje
news:4a1570ec$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
> Ignacio,
>
> Can you attach your debugged sample here, I don't quite get the point.
> Thanks.
>
> David Fung
>
>
>
>
> Ignacio Ortiz de Zúñiga wrote:
>> David,
>>
>> Test it with Xailer 1.9 and it also trimms the column data.
>>
>> This code: msginfo( Len( ::oArrayBrowse1:aCols[1 ]:Value ) ) returns 3
>>
>> This code:
>>
>> METHOD ArrayBrowse1Column1Exit( oSender, oGridEdit, oNextCtl ) CLASS
>> TForm1
>>
>> logdebug( Len( oGridEdit:Value ) )
>>
>> RETURN Nil
>>
>> Also returns 3.
>>
>> AND THIS CODE:
>>
>> METHOD ArrayBrowse1Create( oSender ) CLASS TForm1
>>
>> local aData
>>
>> aData := ::oDbfDataSet1:Struct()
>>
>> oSender:SetArray( aData )
>> logdebug( Len( aData[1,1] ) )
>>
>> RETURN Nil
>>
>> ALSO RETURNS 3 ON XAILER 1.9
>>
>> As you can see I am accessing directly the array returned by the
>> DBStruct() function.
>>
>>
>> Regards,
>>
>
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
david fung
Mensajes: 257
Registrado: Mié Jul 19, 2006 8:48 am

column content got trimmed

Mensaje por david fung »

Thank you Ignacio,
The sample I tried was DbfBuilder under the sample folder.
I found the cause is due to cPicture value. I used a "!!!!!!!!!!" and
two version of Xailer will return different results.
I guess this is correct to assume Xailer always will Rtrim column
content of a Tarraybrowse object then !
David
Ignacio Ortiz de Zúñiga wrote:
> David,
>
> I am afraid I do not have the sample anymore, I revert the changes since it
> was the sample BrowsesBrwEdit.xpj.
>
> BTW, is really easy to do:
>
> Create a new button on firs folder and attach the first code on its OnClick
> event:
>
> msginfo( Len( ::oArrayBrowse1:aCols[1 ]:Value ) )
>
> On ArrayBrowse1 first column overload OnExit event with this code:
>
> METHOD ArrayBrowse1Column1Exit( oSender, oGridEdit, oNextCtl ) CLASS TForm1
>
> logdebug( Len( oGridEdit:Value ) )
>
> RETURN Nil
>
> On event ArrayBrowse1:OnCreate attach this code:
>
> METHOD ArrayBrowse1Create( oSender ) CLASS TForm1
>
> local aData
>
> aData := ::oDbfDataSet1:Struct()
> logdebug( Len( aData[1, 1 ] ) )
>
> oSender:SetArray( aData )
>
> RETURN Nil
>
> Regards,
david fung
Mensajes: 257
Registrado: Mié Jul 19, 2006 8:48 am

column content got trimmed

Mensaje por david fung »

Thank you Ignacio,
The sample I tried was DbfBuilder under the sample folder.
I found the cause is due to cPicture value. I used a "!!!!!!!!!!" and
two version of Xailer will return different results.
I guess this is correct to assume Xailer always will Rtrim column
content of a Tarraybrowse object then !
David
Ignacio Ortiz de Zúñiga wrote:
> David,
>
> I am afraid I do not have the sample anymore, I revert the changes since it
> was the sample BrowsesBrwEdit.xpj.
>
> BTW, is really easy to do:
>
> Create a new button on firs folder and attach the first code on its OnClick
> event:
>
> msginfo( Len( ::oArrayBrowse1:aCols[1 ]:Value ) )
>
> On ArrayBrowse1 first column overload OnExit event with this code:
>
> METHOD ArrayBrowse1Column1Exit( oSender, oGridEdit, oNextCtl ) CLASS TForm1
>
> logdebug( Len( oGridEdit:Value ) )
>
> RETURN Nil
>
> On event ArrayBrowse1:OnCreate attach this code:
>
> METHOD ArrayBrowse1Create( oSender ) CLASS TForm1
>
> local aData
>
> aData := ::oDbfDataSet1:Struct()
> logdebug( Len( aData[1, 1 ] ) )
>
> oSender:SetArray( aData )
>
> RETURN Nil
>
> Regards,
Responder