>>Try
>>CREATE CURSOR crs_at3_temp (fname c(1))
>>USE DBF("crs_at3_temp") AGAIN IN 3 ALIAS crs_at3
>>? SELECT("crs_at3")
>>USE IN crs_at3_temp
>
>WOW! You guys are FAST!!! And with almost exactly the same code sample! I guess I have to give the stars to Serge since he wins by barely a minute! ;)
>
>Thanks both of you for the quick response! That code sample is exactly what I needed. Never thought of doing it that way!
ATTENTION, if the cursor it is created into the particular WA,
this code fails !
CLOSE TABLES ALL
CREATE CURSOR W1 (A i)
CREATE CURSOR W2 (A i)
SELECT 0
? 'WHERE THE CURSOR IT IS CREATED',SELECT()
CREATE CURSOR crs_at3_temp (fname c(1))
USE DBF("crs_at3_temp") AGAIN IN 3 ALIAS crs_at3
USE
? SELECT("crs_at3")
USE IN 3
solution:
#DEFINE PARTICULARWA 3
SELECT 0
CREATE CURSOR 'crs_at3'+IIF(SELECT()=PARTICULARWA,'','_') (fname c(1))
IF SELECT()#PARTICULARWA
USE DBF() AGAIN IN PARTICULARWA ALIAS crs_at3
USE
ENDIF