Página 1 de 1

column content got trimmed

Publicado: Lun May 18, 2009 10:28 pm
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

column content got trimmed

Publicado: Mar May 19, 2009 10:15 am
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
>
>

column content got trimmed

Publicado: Mar May 19, 2009 10:15 am
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
>
>

column content got trimmed

Publicado: Jue May 21, 2009 2:01 pm
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
>
--

column content got trimmed

Publicado: Jue May 21, 2009 2:01 pm
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
>
--

column content got trimmed

Publicado: Jue May 21, 2009 4:13 pm
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
>>
>
>

column content got trimmed

Publicado: Jue May 21, 2009 4:13 pm
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
>>
>
>

column content got trimmed

Publicado: Jue May 21, 2009 5:19 pm
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,
>

column content got trimmed

Publicado: Jue May 21, 2009 5:19 pm
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,
>

column content got trimmed

Publicado: Jue May 21, 2009 7:06 pm
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,
>>
>

column content got trimmed

Publicado: Jue May 21, 2009 7:06 pm
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,
>>
>

column content got trimmed

Publicado: Vie May 22, 2009 12:32 am
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,

column content got trimmed

Publicado: Vie May 22, 2009 12:32 am
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,