... T. ) // Generates PRG code using dialog units.
content_copy
download
Use code with caution.
Harbour
11. SetRDD( lAddColumns, lAutoOrder, aFldNames, aRows )
Description: Sets the data source to an RDD (e.g., DBF database).
Parameters:
lAddColumns: LOGICAL - .T. to automatically add columns ...
Search found 31 matches: afldnames
Searched query: afldnames
- Fri Jan 24, 2025 10:28 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: Using new Class TDeepSeek for documenting
- Replies: 29
- Views: 7656
- Tue Nov 05, 2024 11:48 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: xBrowse: A Vision for a Simpler, More Flexible Future
- Replies: 5
- Views: 1396
Re: xBrowse: A Vision for a Simpler, More Flexible Future
... in a single sequence. For instance, I think the methods should be placed in separate classes:
METHOD SetDolphin( oMysql, lAddCols, lAutoOrder, aFldNames )
METHOD SetMySql( oMysql, lAddCols, lAutoOrder, aFldNames ) // TMySql object
METHOD SetColFromMySQL( cnCol, cHeader ) // used internally from ...
METHOD SetDolphin( oMysql, lAddCols, lAutoOrder, aFldNames )
METHOD SetMySql( oMysql, lAddCols, lAutoOrder, aFldNames ) // TMySql object
METHOD SetColFromMySQL( cnCol, cHeader ) // used internally from ...
- Tue Nov 05, 2024 10:24 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: xBrowse: A Vision for a Simpler, More Flexible Future
- Replies: 5
- Views: 1396
Re: xBrowse: A Vision for a Simpler, More Flexible Future
... in a single sequence. For instance, I think the methods should be placed in separate classes:
METHOD SetDolphin( oMysql, lAddCols, lAutoOrder, aFldNames )
METHOD SetMySql( oMysql, lAddCols, lAutoOrder, aFldNames ) // TMySql object
METHOD SetColFromMySQL( cnCol, cHeader ) // used internally from ...
METHOD SetDolphin( oMysql, lAddCols, lAutoOrder, aFldNames )
METHOD SetMySql( oMysql, lAddCols, lAutoOrder, aFldNames ) // TMySql object
METHOD SetColFromMySQL( cnCol, cHeader ) // used internally from ...
- Mon Jan 29, 2024 3:41 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Creating table with Trichedit
- Replies: 18
- Views: 4689
Re: Creating table with Trichedit
... Local anchos,j,lFormato:=.F.
//Local Mas_n:={}
local aTable:={}
local nRow,ncol
Local oRtf,aMarca, cOutFile :="Plata.RTF", Sob1
Local aFldNames:= {" Ok ", " 2", " 3", "4","5","6", "7", "8", "9"}
AaDd(aTable,{1,,23,,44,,61,,80} )
AaDd(aTable,{,16,,36,,59,68,,89} )
AaDd(aTable,{,,28,,49 ...
//Local Mas_n:={}
local aTable:={}
local nRow,ncol
Local oRtf,aMarca, cOutFile :="Plata.RTF", Sob1
Local aFldNames:= {" Ok ", " 2", " 3", "4","5","6", "7", "8", "9"}
AaDd(aTable,{1,,23,,44,,61,,80} )
AaDd(aTable,{,16,,36,,59,68,,89} )
AaDd(aTable,{,,28,,49 ...
- Mon Jan 29, 2024 11:49 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: Creating table with Trichedit
- Replies: 18
- Views: 4689
Re: Creating table with Trichedit
... Local anchos,j,lFormato:=.F.
//Local Mas_n:={}
local aTable:={}
local nRow,ncol
Local oRtf,aMarca, cOutFile :="Plata.RTF", Sob1
Local aFldNames:= {" Ok ", " 2", " 3", "4","5","6", "7", "8", "9"}
AaDd(aTable,{1,,23,,44,,61,,80} )
AaDd(aTable,{,16,,36,,59,68,,89} )
AaDd(aTable,{,,28,,49 ...
//Local Mas_n:={}
local aTable:={}
local nRow,ncol
Local oRtf,aMarca, cOutFile :="Plata.RTF", Sob1
Local aFldNames:= {" Ok ", " 2", " 3", "4","5","6", "7", "8", "9"}
AaDd(aTable,{1,,23,,44,,61,,80} )
AaDd(aTable,{,16,,36,,59,68,,89} )
AaDd(aTable,{,,28,,49 ...
- Tue Mar 21, 2023 2:41 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: XBrowse con xBase - Efecto Pijama - Error en Red
- Replies: 3
- Views: 826
Re: XBrowse con xBase - Efecto Pijama - Error en Red
... 000 registro, por lo que comentando estas líneas (marcadas con *) en XBrowse.prg el problema se resuelve
METHOD SetRDD( lAddColumns, lAutoOrder, aFldNames, aRows ) CLASS TXBrowse
::::::
else
if ( ( ::cAlias )->( RDDName() ) == "DBFCDX" )
* if ( ::cAlias )->( LASTREC() ) > 10000 .and ...
METHOD SetRDD( lAddColumns, lAutoOrder, aFldNames, aRows ) CLASS TXBrowse
::::::
else
if ( ( ::cAlias )->( RDDName() ) == "DBFCDX" )
* if ( ::cAlias )->( LASTREC() ) > 10000 .and ...
- Tue Jan 21, 2020 3:15 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: Detached locals y clases dinamicas
- Replies: 0
- Views: 542
Detached locals y clases dinamicas
... Se define el MESSAGE de una columna para tomar y dar valores.
static function GenDataField( oADODb, nPos )
Local cNameMethod := oADODb:aFldNames[ nPos ]
//#ifdef __HARBOUR__
local nClassH := oADODb:ClassH
__clsAddMsg( nClassH, cNameMethod, ;
{ | oADODb | oADODb:_FieldGet( nPos ...
static function GenDataField( oADODb, nPos )
Local cNameMethod := oADODb:aFldNames[ nPos ]
//#ifdef __HARBOUR__
local nClassH := oADODb:ClassH
__clsAddMsg( nClassH, cNameMethod, ;
{ | oADODb | oADODb:_FieldGet( nPos ...
- Fri Sep 15, 2017 12:50 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: TDatabase FWH 17.08 : Datas and Methods
- Replies: 1
- Views: 2168
TDatabase FWH 17.08 : Datas and Methods
DATAS
1. aBuffer ( ReadOnly Type: "A" ): Array holding the field values of the current record when ::lBuffer is .T.
2. aFldNames ( ReadOnly Type: "A" ): Array containing field names of DBF
3. aStruct ( ReadOnly Type: "A" ): Structure of the table, similar to DBSTRUCT(). aStruct has additional ...
1. aBuffer ( ReadOnly Type: "A" ): Array holding the field values of the current record when ::lBuffer is .T.
2. aFldNames ( ReadOnly Type: "A" ): Array containing field names of DBF
3. aStruct ( ReadOnly Type: "A" ): Structure of the table, similar to DBSTRUCT(). aStruct has additional ...
- Mon Jul 06, 2015 7:56 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: bug xBrowse ADO
- Replies: 4
- Views: 1056
bug xBrowse ADO
... 4556 )
Called from: .\source\classes\XBROWSE.PRG => (b)TXBROWSE( 438 )
Offending line:
::bGoBottom := {|| If( ::oRs:RecordCount() > 0, ::oRs:MoveLast(), nil ) },;
Can you please verify at METHOD SetAdO( oRs, lAddCols, lAutoOrder, aFldNames ) CLASS TXBrowse that oRs is not nil?.
Thank you.
Called from: .\source\classes\XBROWSE.PRG => (b)TXBROWSE( 438 )
Offending line:
::bGoBottom := {|| If( ::oRs:RecordCount() > 0, ::oRs:MoveLast(), nil ) },;
Can you please verify at METHOD SetAdO( oRs, lAddCols, lAutoOrder, aFldNames ) CLASS TXBrowse that oRs is not nil?.
Thank you.
- Sun Nov 30, 2014 3:43 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: xBrowse with ADO
- Replies: 4
- Views: 1544
Re: xBrowse with ADO
... these modifications:
1. delete all columns as in your code.
then
oBrw:lAdjusted := .f. // new
oBrw:SetADO( oRsNew ) // You may use last param aFldNames if you want specific fields
// Here you insert other code like changing bEditValue, SetCheck() etc.
Finally,
oBrw:Adjust() // new
I like your ...
1. delete all columns as in your code.
then
oBrw:lAdjusted := .f. // new
oBrw:SetADO( oRsNew ) // You may use last param aFldNames if you want specific fields
// Here you insert other code like changing bEditValue, SetCheck() etc.
Finally,
oBrw:Adjust() // new
I like your ...
- Thu Sep 11, 2014 8:02 am
- Forum: FiveWin para Harbour/xHarbour
- Topic: Liado con xBrowse
- Replies: 3
- Views: 659
Re: Liado con xBrowse
Te había contestado sin saber quien eras!!!
A ver si quedamos un día por Dos Hermans o en Utrera no?
Creo que el metodo tiene lo que tu quieres:
SetRDD( lAddColumns, lAutoOrder, aFldNames, aRows )
Sólo tendrías que crear los arrays pertinentes
A ver si quedamos un día por Dos Hermans o en Utrera no?
Creo que el metodo tiene lo que tu quieres:
SetRDD( lAddColumns, lAutoOrder, aFldNames, aRows )
Sólo tendrías que crear los arrays pertinentes
- Wed Sep 10, 2014 9:24 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: Liado con xBrowse
- Replies: 3
- Views: 659
Re: Liado con xBrowse
Creo que usando el método SetRDD, este es el prototipo:
SetRDD( lAddColumns, lAutoOrder, aFldNames, aRows )
Ningun parametro es obligatorio asi que haz la siguiente prueba:
SELECT Cliente
oBrw:setRDD()
oBrw:refresh()
Luego podrás probar con parametros
En los ejemplos de FWH hay uno que se llama ...
SetRDD( lAddColumns, lAutoOrder, aFldNames, aRows )
Ningun parametro es obligatorio asi que haz la siguiente prueba:
SELECT Cliente
oBrw:setRDD()
oBrw:refresh()
Luego podrás probar con parametros
En los ejemplos de FWH hay uno que se llama ...
- Fri Sep 27, 2013 7:19 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: xbrowse - SQLRDD error
- Replies: 10
- Views: 3004
Re: xbrowse - SQLRDD error
... shown in the log. ( where nil is used as logical )
erro: ( ::cAlias )->( DbInfo( DBI_ISREADONLY ) )
METHOD SetRDD( lAddColumns, lAutoOrder, aFldNames, aRows ) CLASS TXBrowse
...
::lReadOnly := ( ::cAlias )->( DbInfo( DBI_ISREADONLY ) )
...
erro: ::oBrw:lReadOnly
METHOD Value( uNew ) CLASS ...
erro: ( ::cAlias )->( DbInfo( DBI_ISREADONLY ) )
METHOD SetRDD( lAddColumns, lAutoOrder, aFldNames, aRows ) CLASS TXBrowse
...
::lReadOnly := ( ::cAlias )->( DbInfo( DBI_ISREADONLY ) )
...
erro: ::oBrw:lReadOnly
METHOD Value( uNew ) CLASS ...
- Thu Feb 28, 2013 6:28 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: Clase TDb o TDatabase....cual usar?
- Replies: 10
- Views: 3235
Re: Clase TDb o TDatabase....cual usar?
... DATA cAlias, cFile, cDriver AS String INIT ""
DATA lReadOnly AS LOGICAL INIT .f.
DATA lOemAnsi
DATA lTenChars AS LOGICAL INIT .t.
DATA aFldNames AS Array
DATA oBookMark AS OBJECT
DATA lBlank AS LOGICAL INIT .f.
METHOD New( cAlias ) CONSTRUCTOR
METHOD Activate()
METHOD AddIndex ...
DATA lReadOnly AS LOGICAL INIT .f.
DATA lOemAnsi
DATA lTenChars AS LOGICAL INIT .t.
DATA aFldNames AS Array
DATA oBookMark AS OBJECT
DATA lBlank AS LOGICAL INIT .f.
METHOD New( cAlias ) CONSTRUCTOR
METHOD Activate()
METHOD AddIndex ...
- Thu Nov 15, 2012 4:19 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: database object
- Replies: 12
- Views: 2546
Re: database object
... local n
logfile("log.txt",{ ::recno(), "modified" } )
logfile("log.txt",{ "FieldGet", ::FieldGet( 1 ) } )
for n := 1 to Len( ::aFldNames )
if ! ( ::cAlias )->( FieldGet( n ) ) == ::aBuffer[ n ]
msginfo(( ::cAlias )->( FieldGet( n ) ))
msginfo(::aBuffer[ n ])
return .t ...
logfile("log.txt",{ ::recno(), "modified" } )
logfile("log.txt",{ "FieldGet", ::FieldGet( 1 ) } )
for n := 1 to Len( ::aFldNames )
if ! ( ::cAlias )->( FieldGet( n ) ) == ::aBuffer[ n ]
msginfo(( ::cAlias )->( FieldGet( n ) ))
msginfo(::aBuffer[ n ])
return .t ...