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.
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.
Sample - DbfBuilder bug ?
-
- Mensajes: 257
- Registrado: Mié Jul 19, 2006 8:48 am
Sample - DbfBuilder bug ?
When I compile & run the captioned sample, I cannot get a duplicate
error from
METHOD ColNameGridEditOnExit( oSender, oNextCtl ) CLASS TForm1 (line
59 of FrmDbfBuilder.prg)
When I try to append two field with identical name.
Somehow the Ascan cannot identify a duplicated entry ? Any idea ?
Regards
David
error from
METHOD ColNameGridEditOnExit( oSender, oNextCtl ) CLASS TForm1 (line
59 of FrmDbfBuilder.prg)
When I try to append two field with identical name.
Somehow the Ascan cannot identify a duplicated entry ? Any idea ?
Regards
David
-
- Mensajes: 257
- Registrado: Mié Jul 19, 2006 8:48 am
Sample - DbfBuilder bug ?
A few other questions about the behaviour of this sample.
1. When I add an entry in the following manner
- Alt "A" (to trigger an Append action)
- FLD1 <enter>
- C <enter>
- 20 <enter>
why the field "Decimals" is skipped and the "Append" button is in
focus. Where is the code that trigger this skipping the last field of th
e array.
2. When I use Alt "E" (ie Edit an entry) (I use <enter> to jump to next
column), the "Decimals" column is not skipped.
3. When I change value of "Type" column (say to "N"), the following row
will repeat the previous row (in this case "N") if I just press <Enter>
to take the value which is "C", very misleading. ie the content of the
list box suddenly change by itself. Is will not happen when I use TAB !
4. What is the purpose of :IsMultiple(), ::RequestState() ?
david fung wrote:
> When I compile & run the captioned sample, I cannot get a duplicate
> error from
>
> METHOD ColNameGridEditOnExit( oSender, oNextCtl ) CLASS TForm1 (line
> 59 of FrmDbfBuilder.prg)
>
> When I try to append two field with identical name.
> Somehow the Ascan cannot identify a duplicated entry ? Any idea ?
>
> Regards
> David
>
1. When I add an entry in the following manner
- Alt "A" (to trigger an Append action)
- FLD1 <enter>
- C <enter>
- 20 <enter>
why the field "Decimals" is skipped and the "Append" button is in
focus. Where is the code that trigger this skipping the last field of th
e array.
2. When I use Alt "E" (ie Edit an entry) (I use <enter> to jump to next
column), the "Decimals" column is not skipped.
3. When I change value of "Type" column (say to "N"), the following row
will repeat the previous row (in this case "N") if I just press <Enter>
to take the value which is "C", very misleading. ie the content of the
list box suddenly change by itself. Is will not happen when I use TAB !
4. What is the purpose of :IsMultiple(), ::RequestState() ?
david fung wrote:
> When I compile & run the captioned sample, I cannot get a duplicate
> error from
>
> METHOD ColNameGridEditOnExit( oSender, oNextCtl ) CLASS TForm1 (line
> 59 of FrmDbfBuilder.prg)
>
> When I try to append two field with identical name.
> Somehow the Ascan cannot identify a duplicated entry ? Any idea ?
>
> Regards
> David
>
-
- Mensajes: 257
- Registrado: Mié Jul 19, 2006 8:48 am
Sample - DbfBuilder bug ?
A few other questions about the behaviour of this sample.
1. When I add an entry in the following manner
- Alt "A" (to trigger an Append action)
- FLD1 <enter>
- C <enter>
- 20 <enter>
why the field "Decimals" is skipped and the "Append" button is in
focus. Where is the code that trigger this skipping the last field of th
e array.
2. When I use Alt "E" (ie Edit an entry) (I use <enter> to jump to next
column), the "Decimals" column is not skipped.
3. When I change value of "Type" column (say to "N"), the following row
will repeat the previous row (in this case "N") if I just press <Enter>
to take the value which is "C", very misleading. ie the content of the
list box suddenly change by itself. Is will not happen when I use TAB !
4. What is the purpose of :IsMultiple(), ::RequestState() ?
david fung wrote:
> When I compile & run the captioned sample, I cannot get a duplicate
> error from
>
> METHOD ColNameGridEditOnExit( oSender, oNextCtl ) CLASS TForm1 (line
> 59 of FrmDbfBuilder.prg)
>
> When I try to append two field with identical name.
> Somehow the Ascan cannot identify a duplicated entry ? Any idea ?
>
> Regards
> David
>
1. When I add an entry in the following manner
- Alt "A" (to trigger an Append action)
- FLD1 <enter>
- C <enter>
- 20 <enter>
why the field "Decimals" is skipped and the "Append" button is in
focus. Where is the code that trigger this skipping the last field of th
e array.
2. When I use Alt "E" (ie Edit an entry) (I use <enter> to jump to next
column), the "Decimals" column is not skipped.
3. When I change value of "Type" column (say to "N"), the following row
will repeat the previous row (in this case "N") if I just press <Enter>
to take the value which is "C", very misleading. ie the content of the
list box suddenly change by itself. Is will not happen when I use TAB !
4. What is the purpose of :IsMultiple(), ::RequestState() ?
david fung wrote:
> When I compile & run the captioned sample, I cannot get a duplicate
> error from
>
> METHOD ColNameGridEditOnExit( oSender, oNextCtl ) CLASS TForm1 (line
> 59 of FrmDbfBuilder.prg)
>
> When I try to append two field with identical name.
> Somehow the Ascan cannot identify a duplicated entry ? Any idea ?
>
> Regards
> David
>
- ignacio
- Site Admin
- Mensajes: 9441
- Registrado: Lun Abr 06, 2015 8:00 pm
- Ubicación: Madrid, Spain
- Contactar:
Sample - DbfBuilder bug ?
David,
Just take of the Alltrim() function on this assignment on method
ColNameGridEditOnExit:
Value := Alltrim( oSender:Value )
Regards,
--
Ignacio Ortiz de Zúñiga
http://www.xailer.com
"david fung" <davfung@yahoo.com> escribió en el mensaje
news:45065f1d$[email=1@news.xailer.com...]1@news.xailer.com...[/email]
> When I compile & run the captioned sample, I cannot get a duplicate error
> from
>
> METHOD ColNameGridEditOnExit( oSender, oNextCtl ) CLASS TForm1 (line 59
> of FrmDbfBuilder.prg)
>
> When I try to append two field with identical name.
> Somehow the Ascan cannot identify a duplicated entry ? Any idea ?
>
> Regards
> David
>
Just take of the Alltrim() function on this assignment on method
ColNameGridEditOnExit:
Value := Alltrim( oSender:Value )
Regards,
--
Ignacio Ortiz de Zúñiga
http://www.xailer.com
"david fung" <davfung@yahoo.com> escribió en el mensaje
news:45065f1d$[email=1@news.xailer.com...]1@news.xailer.com...[/email]
> When I compile & run the captioned sample, I cannot get a duplicate error
> from
>
> METHOD ColNameGridEditOnExit( oSender, oNextCtl ) CLASS TForm1 (line 59
> of FrmDbfBuilder.prg)
>
> When I try to append two field with identical name.
> Somehow the Ascan cannot identify a duplicated entry ? Any idea ?
>
> Regards
> David
>
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
Sample - DbfBuilder bug ?
David,
Just take of the Alltrim() function on this assignment on method
ColNameGridEditOnExit:
Value := Alltrim( oSender:Value )
Regards,
--
Ignacio Ortiz de Zúñiga
http://www.xailer.com
"david fung" <davfung@yahoo.com> escribió en el mensaje
news:45065f1d$[email=1@news.xailer.com...]1@news.xailer.com...[/email]
> When I compile & run the captioned sample, I cannot get a duplicate error
> from
>
> METHOD ColNameGridEditOnExit( oSender, oNextCtl ) CLASS TForm1 (line 59
> of FrmDbfBuilder.prg)
>
> When I try to append two field with identical name.
> Somehow the Ascan cannot identify a duplicated entry ? Any idea ?
>
> Regards
> David
>
Just take of the Alltrim() function on this assignment on method
ColNameGridEditOnExit:
Value := Alltrim( oSender:Value )
Regards,
--
Ignacio Ortiz de Zúñiga
http://www.xailer.com
"david fung" <davfung@yahoo.com> escribió en el mensaje
news:45065f1d$[email=1@news.xailer.com...]1@news.xailer.com...[/email]
> When I compile & run the captioned sample, I cannot get a duplicate error
> from
>
> METHOD ColNameGridEditOnExit( oSender, oNextCtl ) CLASS TForm1 (line 59
> of FrmDbfBuilder.prg)
>
> When I try to append two field with identical name.
> Somehow the Ascan cannot identify a duplicated entry ? Any idea ?
>
> Regards
> David
>
-
- Mensajes: 257
- Registrado: Mié Jul 19, 2006 8:48 am
Sample - DbfBuilder bug ?
Sorry, Q4 should be :IsMultipleEdit() ?
david fung wrote:
> A few other questions about the behaviour of this sample.
>
> 1. When I add an entry in the following manner
> - Alt "A" (to trigger an Append action)
> - FLD1 <enter>
> - C <enter>
> - 20 <enter>
> why the field "Decimals" is skipped and the "Append" button is in
> focus. Where is the code that trigger this skipping the last field of th
> e array.
>
> 2. When I use Alt "E" (ie Edit an entry) (I use <enter> to jump to next
> column), the "Decimals" column is not skipped.
>
> 3. When I change value of "Type" column (say to "N"), the following row
> will repeat the previous row (in this case "N") if I just press <Enter>
> to take the value which is "C", very misleading. ie the content of the
> list box suddenly change by itself. Is will not happen when I use TAB !
>
> 4. What is the purpose of :IsMultiple(), ::RequestState() ?
>
>
>
> david fung wrote:
>> When I compile & run the captioned sample, I cannot get a duplicate
>> error from
>>
>> METHOD ColNameGridEditOnExit( oSender, oNextCtl ) CLASS TForm1 (line
>> 59 of FrmDbfBuilder.prg)
>>
>> When I try to append two field with identical name.
>> Somehow the Ascan cannot identify a duplicated entry ? Any idea ?
>>
>> Regards
>> David
>>
david fung wrote:
> A few other questions about the behaviour of this sample.
>
> 1. When I add an entry in the following manner
> - Alt "A" (to trigger an Append action)
> - FLD1 <enter>
> - C <enter>
> - 20 <enter>
> why the field "Decimals" is skipped and the "Append" button is in
> focus. Where is the code that trigger this skipping the last field of th
> e array.
>
> 2. When I use Alt "E" (ie Edit an entry) (I use <enter> to jump to next
> column), the "Decimals" column is not skipped.
>
> 3. When I change value of "Type" column (say to "N"), the following row
> will repeat the previous row (in this case "N") if I just press <Enter>
> to take the value which is "C", very misleading. ie the content of the
> list box suddenly change by itself. Is will not happen when I use TAB !
>
> 4. What is the purpose of :IsMultiple(), ::RequestState() ?
>
>
>
> david fung wrote:
>> When I compile & run the captioned sample, I cannot get a duplicate
>> error from
>>
>> METHOD ColNameGridEditOnExit( oSender, oNextCtl ) CLASS TForm1 (line
>> 59 of FrmDbfBuilder.prg)
>>
>> When I try to append two field with identical name.
>> Somehow the Ascan cannot identify a duplicated entry ? Any idea ?
>>
>> Regards
>> David
>>
-
- Mensajes: 257
- Registrado: Mié Jul 19, 2006 8:48 am
Sample - DbfBuilder bug ?
Sorry, Q4 should be :IsMultipleEdit() ?
david fung wrote:
> A few other questions about the behaviour of this sample.
>
> 1. When I add an entry in the following manner
> - Alt "A" (to trigger an Append action)
> - FLD1 <enter>
> - C <enter>
> - 20 <enter>
> why the field "Decimals" is skipped and the "Append" button is in
> focus. Where is the code that trigger this skipping the last field of th
> e array.
>
> 2. When I use Alt "E" (ie Edit an entry) (I use <enter> to jump to next
> column), the "Decimals" column is not skipped.
>
> 3. When I change value of "Type" column (say to "N"), the following row
> will repeat the previous row (in this case "N") if I just press <Enter>
> to take the value which is "C", very misleading. ie the content of the
> list box suddenly change by itself. Is will not happen when I use TAB !
>
> 4. What is the purpose of :IsMultiple(), ::RequestState() ?
>
>
>
> david fung wrote:
>> When I compile & run the captioned sample, I cannot get a duplicate
>> error from
>>
>> METHOD ColNameGridEditOnExit( oSender, oNextCtl ) CLASS TForm1 (line
>> 59 of FrmDbfBuilder.prg)
>>
>> When I try to append two field with identical name.
>> Somehow the Ascan cannot identify a duplicated entry ? Any idea ?
>>
>> Regards
>> David
>>
david fung wrote:
> A few other questions about the behaviour of this sample.
>
> 1. When I add an entry in the following manner
> - Alt "A" (to trigger an Append action)
> - FLD1 <enter>
> - C <enter>
> - 20 <enter>
> why the field "Decimals" is skipped and the "Append" button is in
> focus. Where is the code that trigger this skipping the last field of th
> e array.
>
> 2. When I use Alt "E" (ie Edit an entry) (I use <enter> to jump to next
> column), the "Decimals" column is not skipped.
>
> 3. When I change value of "Type" column (say to "N"), the following row
> will repeat the previous row (in this case "N") if I just press <Enter>
> to take the value which is "C", very misleading. ie the content of the
> list box suddenly change by itself. Is will not happen when I use TAB !
>
> 4. What is the purpose of :IsMultiple(), ::RequestState() ?
>
>
>
> david fung wrote:
>> When I compile & run the captioned sample, I cannot get a duplicate
>> error from
>>
>> METHOD ColNameGridEditOnExit( oSender, oNextCtl ) CLASS TForm1 (line
>> 59 of FrmDbfBuilder.prg)
>>
>> When I try to append two field with identical name.
>> Somehow the Ascan cannot identify a duplicated entry ? Any idea ?
>>
>> Regards
>> David
>>
- ignacio
- Site Admin
- Mensajes: 9441
- Registrado: Lun Abr 06, 2015 8:00 pm
- Ubicación: Madrid, Spain
- Contactar:
Sample - DbfBuilder bug ?
David,
> 1. When I add an entry in the following manner
> - Alt "A" (to trigger an Append action)
> - FLD1 <enter>
> - C <enter>
> - 20 <enter>
> why the field "Decimals" is skipped and the "Append" button is in
> focus. Where is the code that trigger this skipping the last field of th e
> array.
METHOD ArrayBrowse1Edit( oSender ) CLASS TForm1
local oEdiLength, oEdiDecim
local cType
With object ::oArrayBrowse1
cType := :GetValue( "Type" )
oEdiLength := :aCols[ 3 ]:oGridEdit
oEdiDecim := :aCols[ 4 ]:oGridEdit
do case
case cType == "C"
oEdiLength:lEnabled := .t.
oEdiDecim:lEnabled :=
..f.>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
case cType == "N"
oEdiLength:lEnabled := .t.
oEdiDecim:lEnabled := .t.
case cType == "D"
oEdiLength:lEnabled := .f.
oEdiDecim:lEnabled := .f.
case cType == "L"
oEdiLength:lEnabled := .f.
oEdiDecim:lEnabled := .f.
case cType == "M"
oEdiLength:lEnabled := .f.
oEdiDecim:lEnabled := .f.
endcase
End with
RETURN Nil
> 2. When I use Alt "E" (ie Edit an entry) (I use <enter> to jump to next
> column), the "Decimals" column is not skipped.
That is a bug introduced by us on our last revision I am afraid. The event
OnChange is not triggered on TGridEdit class and for that reason the method
ColTypeGridEditOnChange is never called. Now is fixed. Sorry for any
inconvenience.
> 3. When I change value of "Type" column (say to "N"), the following row
> will repeat the previous row (in this case "N") if I just press <Enter> to
> take the value which is "C", very misleading. ie the content of the list
> box suddenly change by itself. Is will not happen when I use TAB !
Fixed. Thanks
> 4. What is the purpose of :IsMultiple(), ::RequestState() ?
oBrowse:IsMultipleEdit() returns TRUE if you are editing more than one
column at a time. oForm:RequestState() forces a call to OnCheckState() event
on every form control.
Regards,
--
Ignacio Ortiz de Zúñiga
http://www.xailer.com
"david fung" <davfung@yahoo.com> escribió en el mensaje
news:[email=450665ec@news.xailer.com...]450665ec@news.xailer.com...[/email]
>A few other questions about the behaviour of this sample.
>
>
> 2. When I use Alt "E" (ie Edit an entry) (I use <enter> to jump to next
> column), the "Decimals" column is not skipped.
>
> 3. When I change value of "Type" column (say to "N"), the following row
> will repeat the previous row (in this case "N") if I just press <Enter> to
> take the value which is "C", very misleading. ie the content of the list
> box suddenly change by itself. Is will not happen when I use TAB !
>
> 4. What is the purpose of :IsMultiple(), ::RequestState() ?
>
>
>
> david fung wrote:
>> When I compile & run the captioned sample, I cannot get a duplicate error
>> from
>>
>> METHOD ColNameGridEditOnExit( oSender, oNextCtl ) CLASS TForm1 (line 59
>> of FrmDbfBuilder.prg)
>>
>> When I try to append two field with identical name.
>> Somehow the Ascan cannot identify a duplicated entry ? Any idea ?
>>
>> Regards
>> David
>>
> 1. When I add an entry in the following manner
> - Alt "A" (to trigger an Append action)
> - FLD1 <enter>
> - C <enter>
> - 20 <enter>
> why the field "Decimals" is skipped and the "Append" button is in
> focus. Where is the code that trigger this skipping the last field of th e
> array.
METHOD ArrayBrowse1Edit( oSender ) CLASS TForm1
local oEdiLength, oEdiDecim
local cType
With object ::oArrayBrowse1
cType := :GetValue( "Type" )
oEdiLength := :aCols[ 3 ]:oGridEdit
oEdiDecim := :aCols[ 4 ]:oGridEdit
do case
case cType == "C"
oEdiLength:lEnabled := .t.
oEdiDecim:lEnabled :=
..f.>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
case cType == "N"
oEdiLength:lEnabled := .t.
oEdiDecim:lEnabled := .t.
case cType == "D"
oEdiLength:lEnabled := .f.
oEdiDecim:lEnabled := .f.
case cType == "L"
oEdiLength:lEnabled := .f.
oEdiDecim:lEnabled := .f.
case cType == "M"
oEdiLength:lEnabled := .f.
oEdiDecim:lEnabled := .f.
endcase
End with
RETURN Nil
> 2. When I use Alt "E" (ie Edit an entry) (I use <enter> to jump to next
> column), the "Decimals" column is not skipped.
That is a bug introduced by us on our last revision I am afraid. The event
OnChange is not triggered on TGridEdit class and for that reason the method
ColTypeGridEditOnChange is never called. Now is fixed. Sorry for any
inconvenience.
> 3. When I change value of "Type" column (say to "N"), the following row
> will repeat the previous row (in this case "N") if I just press <Enter> to
> take the value which is "C", very misleading. ie the content of the list
> box suddenly change by itself. Is will not happen when I use TAB !
Fixed. Thanks
> 4. What is the purpose of :IsMultiple(), ::RequestState() ?
oBrowse:IsMultipleEdit() returns TRUE if you are editing more than one
column at a time. oForm:RequestState() forces a call to OnCheckState() event
on every form control.
Regards,
--
Ignacio Ortiz de Zúñiga
http://www.xailer.com
"david fung" <davfung@yahoo.com> escribió en el mensaje
news:[email=450665ec@news.xailer.com...]450665ec@news.xailer.com...[/email]
>A few other questions about the behaviour of this sample.
>
>
> 2. When I use Alt "E" (ie Edit an entry) (I use <enter> to jump to next
> column), the "Decimals" column is not skipped.
>
> 3. When I change value of "Type" column (say to "N"), the following row
> will repeat the previous row (in this case "N") if I just press <Enter> to
> take the value which is "C", very misleading. ie the content of the list
> box suddenly change by itself. Is will not happen when I use TAB !
>
> 4. What is the purpose of :IsMultiple(), ::RequestState() ?
>
>
>
> david fung wrote:
>> When I compile & run the captioned sample, I cannot get a duplicate error
>> from
>>
>> METHOD ColNameGridEditOnExit( oSender, oNextCtl ) CLASS TForm1 (line 59
>> of FrmDbfBuilder.prg)
>>
>> When I try to append two field with identical name.
>> Somehow the Ascan cannot identify a duplicated entry ? Any idea ?
>>
>> Regards
>> David
>>
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
Sample - DbfBuilder bug ?
David,
> 1. When I add an entry in the following manner
> - Alt "A" (to trigger an Append action)
> - FLD1 <enter>
> - C <enter>
> - 20 <enter>
> why the field "Decimals" is skipped and the "Append" button is in
> focus. Where is the code that trigger this skipping the last field of th e
> array.
METHOD ArrayBrowse1Edit( oSender ) CLASS TForm1
local oEdiLength, oEdiDecim
local cType
With object ::oArrayBrowse1
cType := :GetValue( "Type" )
oEdiLength := :aCols[ 3 ]:oGridEdit
oEdiDecim := :aCols[ 4 ]:oGridEdit
do case
case cType == "C"
oEdiLength:lEnabled := .t.
oEdiDecim:lEnabled :=
..f.>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
case cType == "N"
oEdiLength:lEnabled := .t.
oEdiDecim:lEnabled := .t.
case cType == "D"
oEdiLength:lEnabled := .f.
oEdiDecim:lEnabled := .f.
case cType == "L"
oEdiLength:lEnabled := .f.
oEdiDecim:lEnabled := .f.
case cType == "M"
oEdiLength:lEnabled := .f.
oEdiDecim:lEnabled := .f.
endcase
End with
RETURN Nil
> 2. When I use Alt "E" (ie Edit an entry) (I use <enter> to jump to next
> column), the "Decimals" column is not skipped.
That is a bug introduced by us on our last revision I am afraid. The event
OnChange is not triggered on TGridEdit class and for that reason the method
ColTypeGridEditOnChange is never called. Now is fixed. Sorry for any
inconvenience.
> 3. When I change value of "Type" column (say to "N"), the following row
> will repeat the previous row (in this case "N") if I just press <Enter> to
> take the value which is "C", very misleading. ie the content of the list
> box suddenly change by itself. Is will not happen when I use TAB !
Fixed. Thanks
> 4. What is the purpose of :IsMultiple(), ::RequestState() ?
oBrowse:IsMultipleEdit() returns TRUE if you are editing more than one
column at a time. oForm:RequestState() forces a call to OnCheckState() event
on every form control.
Regards,
--
Ignacio Ortiz de Zúñiga
http://www.xailer.com
"david fung" <davfung@yahoo.com> escribió en el mensaje
news:[email=450665ec@news.xailer.com...]450665ec@news.xailer.com...[/email]
>A few other questions about the behaviour of this sample.
>
>
> 2. When I use Alt "E" (ie Edit an entry) (I use <enter> to jump to next
> column), the "Decimals" column is not skipped.
>
> 3. When I change value of "Type" column (say to "N"), the following row
> will repeat the previous row (in this case "N") if I just press <Enter> to
> take the value which is "C", very misleading. ie the content of the list
> box suddenly change by itself. Is will not happen when I use TAB !
>
> 4. What is the purpose of :IsMultiple(), ::RequestState() ?
>
>
>
> david fung wrote:
>> When I compile & run the captioned sample, I cannot get a duplicate error
>> from
>>
>> METHOD ColNameGridEditOnExit( oSender, oNextCtl ) CLASS TForm1 (line 59
>> of FrmDbfBuilder.prg)
>>
>> When I try to append two field with identical name.
>> Somehow the Ascan cannot identify a duplicated entry ? Any idea ?
>>
>> Regards
>> David
>>
> 1. When I add an entry in the following manner
> - Alt "A" (to trigger an Append action)
> - FLD1 <enter>
> - C <enter>
> - 20 <enter>
> why the field "Decimals" is skipped and the "Append" button is in
> focus. Where is the code that trigger this skipping the last field of th e
> array.
METHOD ArrayBrowse1Edit( oSender ) CLASS TForm1
local oEdiLength, oEdiDecim
local cType
With object ::oArrayBrowse1
cType := :GetValue( "Type" )
oEdiLength := :aCols[ 3 ]:oGridEdit
oEdiDecim := :aCols[ 4 ]:oGridEdit
do case
case cType == "C"
oEdiLength:lEnabled := .t.
oEdiDecim:lEnabled :=
..f.>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
case cType == "N"
oEdiLength:lEnabled := .t.
oEdiDecim:lEnabled := .t.
case cType == "D"
oEdiLength:lEnabled := .f.
oEdiDecim:lEnabled := .f.
case cType == "L"
oEdiLength:lEnabled := .f.
oEdiDecim:lEnabled := .f.
case cType == "M"
oEdiLength:lEnabled := .f.
oEdiDecim:lEnabled := .f.
endcase
End with
RETURN Nil
> 2. When I use Alt "E" (ie Edit an entry) (I use <enter> to jump to next
> column), the "Decimals" column is not skipped.
That is a bug introduced by us on our last revision I am afraid. The event
OnChange is not triggered on TGridEdit class and for that reason the method
ColTypeGridEditOnChange is never called. Now is fixed. Sorry for any
inconvenience.
> 3. When I change value of "Type" column (say to "N"), the following row
> will repeat the previous row (in this case "N") if I just press <Enter> to
> take the value which is "C", very misleading. ie the content of the list
> box suddenly change by itself. Is will not happen when I use TAB !
Fixed. Thanks
> 4. What is the purpose of :IsMultiple(), ::RequestState() ?
oBrowse:IsMultipleEdit() returns TRUE if you are editing more than one
column at a time. oForm:RequestState() forces a call to OnCheckState() event
on every form control.
Regards,
--
Ignacio Ortiz de Zúñiga
http://www.xailer.com
"david fung" <davfung@yahoo.com> escribió en el mensaje
news:[email=450665ec@news.xailer.com...]450665ec@news.xailer.com...[/email]
>A few other questions about the behaviour of this sample.
>
>
> 2. When I use Alt "E" (ie Edit an entry) (I use <enter> to jump to next
> column), the "Decimals" column is not skipped.
>
> 3. When I change value of "Type" column (say to "N"), the following row
> will repeat the previous row (in this case "N") if I just press <Enter> to
> take the value which is "C", very misleading. ie the content of the list
> box suddenly change by itself. Is will not happen when I use TAB !
>
> 4. What is the purpose of :IsMultiple(), ::RequestState() ?
>
>
>
> david fung wrote:
>> When I compile & run the captioned sample, I cannot get a duplicate error
>> from
>>
>> METHOD ColNameGridEditOnExit( oSender, oNextCtl ) CLASS TForm1 (line 59
>> of FrmDbfBuilder.prg)
>>
>> When I try to append two field with identical name.
>> Somehow the Ascan cannot identify a duplicated entry ? Any idea ?
>>
>> Regards
>> David
>>
-
- Mensajes: 257
- Registrado: Mié Jul 19, 2006 8:48 am
Sample - DbfBuilder bug ?
Ignacio Ortiz de Zúñiga wrote:
> David,
>
> Just take of the Alltrim() function on this assignment on method
> ColNameGridEditOnExit:
>
> Value := Alltrim( oSender:Value )
>
> Regards,
>
Thanks for your prompt reply.
David
> David,
>
> Just take of the Alltrim() function on this assignment on method
> ColNameGridEditOnExit:
>
> Value := Alltrim( oSender:Value )
>
> Regards,
>
Thanks for your prompt reply.
David
-
- Mensajes: 257
- Registrado: Mié Jul 19, 2006 8:48 am
Sample - DbfBuilder bug ?
Ignacio Ortiz de Zúñiga wrote:
> David,
>
> Just take of the Alltrim() function on this assignment on method
> ColNameGridEditOnExit:
>
> Value := Alltrim( oSender:Value )
>
> Regards,
>
Thanks for your prompt reply.
David
> David,
>
> Just take of the Alltrim() function on this assignment on method
> ColNameGridEditOnExit:
>
> Value := Alltrim( oSender:Value )
>
> Regards,
>
Thanks for your prompt reply.
David