>Dear Sir,
>
>It shows
>File cmonth.prg does not exists
What version of VFP are you using? The line of code Al has given does work correctly. Just try this in the command window as a simple test with literal values for year and month:
?SUBSTR( CMONTH( EVALUATE( "{^2007-" + LTRIM( STR( 9 ) ) + "-01}" ) ), 1, 3 ) + "-" + LTRIM( STR( 2007 ) )
Does that work?
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.