Hi,
I have table called orders and table called nielsen.
so iam searching for the catalog_no which is in table nielsen and ide to match in orders table so that they proceed for checkout.
before i used the table directly like this
SELECT IDE
GO TOP
DO WHILE NOT EOF()
IF DIST <> 'XX'
SELECT whit %%%%&&&&( I want to replace this one by select command so that i can directly compare )***
!!!!***I tried like this but it gives an error saying indexnot found****!!!!
SELECT * FROM nielsen WHERE catalog_no like '"+ALLTRIM(m.catalog_no)+"'
SET ORDER TO (catalog_no)
IF SEEK(ALLTRIM(ide -> catalog_no))
temdist = ALLTRIM(UKDIST1)
SELECT sup
SET ORDER TO UKDIST1
IF SEEK(ALLTRIM(temdist))
SELECT ide
REPLACE sup WITH sup -> acc_ref
REPLACE dist WITH sup -> acc_ref
REPLACE PUBTAG WITH 'EP'
ELSE
REPLACE ide -> sup WITH 'QUERY'
REPLACE ide -> dist WITH whit -> UKDIST1
ENDIF
ELSE
ENDIF
ENDIF
SELECT ide
SKIP
ENDDO
Thanks,
sunil
I have table called orders and table called nielsen.
so iam searching for the catalog_no which is in table nielsen and ide to match in orders table so that they proceed for checkout.
before i used the table directly like this
SELECT IDE
GO TOP
DO WHILE NOT EOF()
IF DIST <> 'XX'
SELECT whit %%%%&&&&( I want to replace this one by select command so that i can directly compare )***
!!!!***I tried like this but it gives an error saying indexnot found****!!!!
SELECT * FROM nielsen WHERE catalog_no like '"+ALLTRIM(m.catalog_no)+"'
SET ORDER TO (catalog_no)
IF SEEK(ALLTRIM(ide -> catalog_no))
temdist = ALLTRIM(UKDIST1)
SELECT sup
SET ORDER TO UKDIST1
IF SEEK(ALLTRIM(temdist))
SELECT ide
REPLACE sup WITH sup -> acc_ref
REPLACE dist WITH sup -> acc_ref
REPLACE PUBTAG WITH 'EP'
ELSE
REPLACE ide -> sup WITH 'QUERY'
REPLACE ide -> dist WITH whit -> UKDIST1
ENDIF
ELSE
ENDIF
ENDIF
SELECT ide
SKIP
ENDDO
Thanks,
sunil