I have no syntax error. Perhaps VFP5 does not have the TRANSFORM() command. In which case use:
cDestFile = "month" + ALLTRIM( STR( nCurMonth ) ) + ".dbf"
>hello,
>thank you for replay, i use vfp5,
>
>
>i get syntax error at line 3
>
>CLOSE ALL
>nCurMonth = MONTH( DATE() )
>**cDestFile = "month" + TRANSFORM( nCurMonth ) + ".dbf"** SYNTAX ERROR
>
>COPY FILE salar.dbf TO (cDestFile)
>
>SELECT 0
>USE salar EXCLUSIVE
>ZAP
>USE
>
>
>i get
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.