oRecordSet:Fields( aWAData[WA_FIELDRECNO] ):Properties():Item("Optimize"):Value := 1
AHF wrote:Im using xHarbour Set 2008.
lucasdebeltran wrote:Antonio,
Dbcreate() should take the database from SET ADO DEFAULT DATABASE TO command, so only needs to indicate table name, as current dbcreate() from DBFCDX.
So, I would plan dbcreate() as follows.
To keep compatibility with DBFCDX, fist parameter should be table name.
Also, if you want, you can indicate separated by ; the rest of the parameters:
STATIC FUNCTION ADO_CREATE( nWA, aOpenInfo )
LOCAL aWAData := USRRDD_AREADATA( nWA )
LOCAL cTable := hb_tokenGet( aOpenInfo[ UR_OI_NAME ], 1, ";" )
LOCAL cDataBase := hb_tokenGet( aOpenInfo[ UR_OI_NAME ], 2, ";" )
LOCAL cDbEngine := hb_tokenGet( aOpenInfo[ UR_OI_NAME ], 3, ";" )
LOCAL cServer := hb_tokenGet( aOpenInfo[ UR_OI_NAME ], 4, ";" )
LOCAL cUserName := hb_tokenGet( aOpenInfo[ UR_OI_NAME ], 5, ";" )
LOCAL cPassword := hb_tokenGet( aOpenInfo[ UR_OI_NAME ], 6, ";" )
I discovered a new bug: creating an empty Access database and table, I can´t add records. I get MsgAlert() ADO ERROR UNKNOWN at function ADO_APPEND().
If I edit the Access and I add with Access a new record, I can APPEND new records with ADORDD.
STATIC FUNCTION ADO_EVALBLOCK( nArea, bBlock, uResult )
LOCAL nCurrArea
nCurrArea := Select()
IF nCurrArea != nArea
dbSelectArea( nArea )
ELSE
nCurrArea := 0
ENDIF
IF PROCNAME(1) <> "ADO_RELEVAL"
// DONT KNOW WHY BUT DBEVAL ONLY WORK LIKE THIS
//uResult := Eval( bBlock )
UR_SUPER_EVALBLOCK( nArea, bBlock, uResult )
ELSE
uResult := Eval( bBlock )
ENDIF
IF nCurrArea > 0
dbSelectArea( nCurrArea )
ENDIF
RETURN HB_SUCCESS
AHF wrote:First trials on real world went very well.
Trials will continue during this week.
Still didn't change one line of code in the app.
INDEX ON MYFUNC1( myparams ) TO MYINDEX FOR MYFUNC2( myparams )
Enrico Maria Giordano wrote:Antonio,AHF wrote:First trials on real world went very well.
Trials will continue during this week.
Still didn't change one line of code in the app.
Can we use something like this?
- Code: Select all Expand view RUN
INDEX ON MYFUNC1( myparams ) TO MYINDEX FOR MYFUNC2( myparams )
EMG
cexpress1 := "field1 <> space(10)"
cexpress2 := "field2+field3 ='"+ (wcod)+"'"
index on field2+field3+str(val(field4),4,0) to (temporario);
while &(cexpress2) for &(cexpress1);
AHF wrote:As long as its evaluated before send it to adordd I would say yes.
Enrico Maria Giordano wrote:Antonio,
No, to all your questions.
EMG
LOCATE FOR FIELD->NAME == "Lucas"
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: damianodec, Google [Bot] and 14 guests