alguien a utilizado la funcion de Ads AdsRestructureTable()
a ver si me dan una manito para esta funcion
desde ya gracias...
viendo los fuentes me da esta pista, pero no he podido como implementarla..
- Code: Select all Expand view RUN
HB_FUNC( ADSRESTRUCTURETABLE )
{
// call:
// AdsRestructureTable( cTable, cAddFields, cDeleteFields, cChangeFields )
//UNSIGNED32 AdsRestructureTable( ADSHANDLE hConnect,UNSIGNED8 *pucName,
// UNSIGNED8 *pucAlias,UNSIGNED16 usTableType,UNSIGNED16 usCharType,
// UNSIGNED16 usLockType,UNSIGNED16 usCheckRights,UNSIGNED8
// *pucAddFields,UNSIGNED8 *pucDeleteFields,UNSIGNED8 *pucChangeFields );
//adsFileType ADS_DEFAULT, ADS_ADT, ADS_NTX and ADS_CDX
UNSIGNED32 ulRetVal;
UNSIGNED8 *pTableName = (UNSIGNED8 *) hb_parcx( 1 );
UNSIGNED8 *pucAddFields = (UNSIGNED8 *) hb_parcx( 2 );
UNSIGNED8 *pucDeleteFields = (UNSIGNED8 *) hb_parcx( 3 );
UNSIGNED8 *pucChangeFields = (UNSIGNED8 *) hb_parcx( 4 );
ADSHANDLE hConnect = HB_ADS_PARCONNECTION( 5 );
ulRetVal = AdsRestructureTable( hConnect, pTableName, NULL,
adsFileType, adsCharType, adsLockType,
adsRights,
pucAddFields,
pucDeleteFields,
pucChangeFields );
hb_retl( (long) ulRetVal );