Creating customīs indexes in ADS

This is a discussion on Creating customīs indexes in ADS within the xharbour forums in Programming Languages category; Hi. Please, what I have to do to create customs keys using rdd ADSCDX and xharbour? Using rdd DBFCDX I do: Code: PROCEDURE Main USE arq1 VIA "DBFCDX" INDEX ON CODIGO TAG CODIGO TO arq101 INDEX ON SPACE( 20 ) TAG NAME TO arq1xx CUSTOM USE arq2 NEW VIA "DBFCDX" INDEX ON CODIGO + COD_PERC TAG PERC TO arq201 SELE arq1 SET ORDER TO ORDNUMBER( 'CODIGO' ) SET RELA TO CODIGO INTO arq2 GO TOP WHILE ! EOF() OrdKeyAdd( "NAME", , arq2->COD_PERC + arq1->NOME ) SKIP ENDDO SET ORDER TO ORDNUMBER( 'NAME' ) GO TOP COPY TO RESULT CLOSE DATA ...

Go Back   Application Development Forum > Programming Languages > xharbour

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-19-2008, 01:34 PM
FabioNery
Guest
 
Default Creating customīs indexes in ADS

Hi.

Please, what I have to do to create customs keys using rdd ADSCDX and
xharbour? Using rdd DBFCDX I do:

Code:
PROCEDURE Main

USE arq1 VIA "DBFCDX"
INDEX ON CODIGO TAG CODIGO TO arq101
INDEX ON SPACE( 20 ) TAG NAME    TO arq1xx CUSTOM

USE  arq2 NEW VIA "DBFCDX"
INDEX ON CODIGO + COD_PERC TAG PERC    TO arq201

SELE arq1
SET ORDER TO ORDNUMBER( 'CODIGO' )
SET RELA TO CODIGO  INTO arq2
GO TOP

WHILE ! EOF()
OrdKeyAdd( "NAME", , arq2->COD_PERC + arq1->NOME  )
SKIP
ENDDO

SET ORDER TO ORDNUMBER( 'NAME' )
GO TOP

COPY TO RESULT

CLOSE DATA

RETURN NIL
How to convert this program to ADS? I tried to change ordkeyadd() to
adsAddCustomKey() but I didnīt get success.

TIA,
FabioNery


Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 09:18 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.