Antonio,
Tried it again. Same error.
HB_FUNC_UR_SUPER( ADDFIELD )
{
AREAP pArea = hb_usrGetAreaParam( 2 );
if( pArea )
{
DBFIELDINFO dbFieldInfo;
if( hb_usrItemToFieldInfo( hb_param( 2, HB_IT_ARRAY ), &dbFieldInfo ) )
{
hb_retni( SUPER_ADDFIELD( pArea, &dbFieldInfo ) );
}
else
{
hb_usrErrorRT( pArea, EG_ARG, EDBCMD_NOVAR );
hb_retni( HB_FAILURE );
}
}
}
static HB_BOOL hb_usrItemToFieldInfo( PHB_ITEM pItem, LPDBFIELDINFO pFieldInfo )
{
if( pItem && hb_arrayLen( pItem ) == UR_FI_SIZE )
{
pFieldInfo->atomName = hb_usrArrayGetCPtr( pItem, UR_FI_NAME );
pFieldInfo->uiType = ( HB_USHORT ) hb_arrayGetNI( pItem, UR_FI_TYPE );
pFieldInfo->uiTypeExtended = ( HB_USHORT ) hb_arrayGetNI( pItem, UR_FI_TYPEEXT );
pFieldInfo->uiLen = ( HB_USHORT ) hb_arrayGetNI( pItem, UR_FI_LEN );
pFieldInfo->uiDec = ( HB_USHORT ) hb_arrayGetNI( pItem, UR_FI_DEC );
return HB_TRUE;
}
return HB_FALSE;
}
AHF wrote:Antonio,
Im working with FWH October 2008 and xHarbour Sept 2008 .
Is this the reason?
AHF wrote:Antonio,
I checked usrrdd.c from xHarbour and it expects aField[ UR_FI_FLAGS ] aField[ UR_FI_STEP ] that I now send := 0.
Its ok now
Will keep you posted
AHF wrote:Antono,
There is a problem with the field:type.
When its dbf field "N" with 0 decimals it returns a double with 2 decimal places.
How can we make this conversion when uploading dbfs as tables for ex to mysql or working with dbfs directly ?
AHF wrote:I save a password with functions FwEncrypt and Fwdecrypt but the charater returned doesnt correspond to what is in that field.
I think this has something to do with charset
Any solutions?
Antonio Linares wrote:AHF wrote:I save a password with functions FwEncrypt and Fwdecrypt but the charater returned doesnt correspond to what is in that field.
I think this has something to do with charset
Any solutions?
Try to use Harbour encrypt/decrypt functions to see if that solves the problem.
I don't remember right now the exact names that those functions have.
AHF wrote:Antonio,
The application crashes without any error in the following condition:
ACTIVATE WINDOW … ON INIT initial() …
Function Initial()
Use dbf
Do while !eof()
…..
Dbskip()
Enddo
If the same function is called out of ON INIT clause its ok.
If I call browse() before the Do While in any condition its ok
The crash occours in the oRecordSet:move(nTotSkip) in ADO_SKIPRAW() inside the do while og Initial().
What might be the problem?
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 38 guests