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.

oGridEdit

Xailer professional forum in English
Responder
Aguiar
Mensajes: 38
Registrado: Vie Dic 22, 2006 1:33 pm

oGridEdit

Mensaje por Aguiar »

Hi,
I am using a DBBrowse with lFastEdit set to .T. and have all columns
nEditType set to beGET. So far it's all working ok...but i was trying to
limit the length of all oGridEdit this way:
METHOD BrwColumnGridEditCreate( oSender ) CLASS TForm1
oSender:oGridEdit:nMaxLength := oSender:oDataField:nLen
RETURN Nil
And it's not working...What am i doing wrong ?
Thanks.
Aguiar
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5707
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

oGridEdit

Mensaje por jfgimenez »

Aguiar,
> I am using a DBBrowse with lFastEdit set to .T. and have all columns
> nEditType set to beGET. So far it's all working ok...but i was trying to
> limit the length of all oGridEdit this way:
>
> METHOD BrwColumnGridEditCreate( oSender ) CLASS TForm1
>
> oSender:oGridEdit:nMaxLength := oSender:oDataField:nLen
>
> RETURN Nil
>
> And it's not working...What am i doing wrong ?
Use the property nEditLength from TBrwColumn
--
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5707
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

oGridEdit

Mensaje por jfgimenez »

Aguiar,
> I am using a DBBrowse with lFastEdit set to .T. and have all columns
> nEditType set to beGET. So far it's all working ok...but i was trying to
> limit the length of all oGridEdit this way:
>
> METHOD BrwColumnGridEditCreate( oSender ) CLASS TForm1
>
> oSender:oGridEdit:nMaxLength := oSender:oDataField:nLen
>
> RETURN Nil
>
> And it's not working...What am i doing wrong ?
Use the property nEditLength from TBrwColumn
--
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Aguiar
Mensajes: 38
Registrado: Vie Dic 22, 2006 1:33 pm

oGridEdit

Mensaje por Aguiar »

Jose,
I missed that property...thanks, it's working fine now.
Regards
Aguiar
"Jose F. Gimenez" <jfgimenez@wanadoo.es> escreveu na mensagem
news:45c1e8c3$[email=1@news.xailer.com...]1@news.xailer.com...[/email]
> Aguiar,
>
>> I am using a DBBrowse with lFastEdit set to .T. and have all columns
>> nEditType set to beGET. So far it's all working ok...but i was trying to
>> limit the length of all oGridEdit this way:
>>
>> METHOD BrwColumnGridEditCreate( oSender ) CLASS TForm1
>>
>> oSender:oGridEdit:nMaxLength := oSender:oDataField:nLen
>>
>> RETURN Nil
>>
>> And it's not working...What am i doing wrong ?
>
> Use the property nEditLength from TBrwColumn
>
> --
> Regards,
>
> Jose F. Gimenez
> http://www.xailer.com
> http://www.xailer.info
>
>
Aguiar
Mensajes: 38
Registrado: Vie Dic 22, 2006 1:33 pm

oGridEdit

Mensaje por Aguiar »

Jose,
I missed that property...thanks, it's working fine now.
Regards
Aguiar
"Jose F. Gimenez" <jfgimenez@wanadoo.es> escreveu na mensagem
news:45c1e8c3$[email=1@news.xailer.com...]1@news.xailer.com...[/email]
> Aguiar,
>
>> I am using a DBBrowse with lFastEdit set to .T. and have all columns
>> nEditType set to beGET. So far it's all working ok...but i was trying to
>> limit the length of all oGridEdit this way:
>>
>> METHOD BrwColumnGridEditCreate( oSender ) CLASS TForm1
>>
>> oSender:oGridEdit:nMaxLength := oSender:oDataField:nLen
>>
>> RETURN Nil
>>
>> And it's not working...What am i doing wrong ?
>
> Use the property nEditLength from TBrwColumn
>
> --
> Regards,
>
> Jose F. Gimenez
> http://www.xailer.com
> http://www.xailer.info
>
>
Responder