Local cRetvalue >cRetvalue=substr(sys(2015),3,10) >If used(cRetvalue) > Use in &cRetvalue. >Endif >Return cRetvalue>The function worked very good in many places in the project.
cAlias=gettempalias() > SELECT name,id; > from prudact ; > into cursor &cAlias. nofilter ; > where sprudact.usefor=.t. ; > order by 1>Today we started to get error message 'Syntax error' when I use with this function in all the places in the program.