Hello Antonio,
if I check immediately afte assigning ::abuffer in METHOD Blank()
( ::cAlias )->( FieldGet( 1 ) ) returns the value of the first record in the database.
Are you sure modified is working if you add a record using blank()
Best regards,
Otto
- Code: Select all Expand view
METHOD Blank() CLASS TDataFWH
if ::lBuffer
AEval( ::aBuffer, { |u,i| ::aBuffer[ i ] := uValBlank( u ) } )
endif
logfile("log.txt",{ ::recno(), "*** Blank" } )
logfile("log.txt",{ "::FieldGet ->", ::FieldGet( 1 ) } )
logfile("log.txt",{ "FieldGet ->", ( ::cAlias )->( FieldGet( 1 ) ) } )
logfile("log.txt",{ "aBuffer ->", ::aBuffer[ 1 ] } )
logfile("log.txt",{ ::recno(), "*** Ende" } )
return .f.
//----------------------------------------------------------------------------//
15.11.2012 05:42:12: 1 *** Blank
15.11.2012 05:42:12: ::FieldGet ->
15.11.2012 05:42:12: FieldGet -> Gute Anreise
15.11.2012 05:42:12: aBuffer ->
15.11.2012 05:42:12: 1 *** Ende
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club********************************************************************