>VFP 5.0 is not accepting the following code:
>
>
>IF NOT EXISTS(SELECT c.guro_id FROM (this.cursor_name) c ;
>WHERE c.guro_id = EVAL(cur+'.guro_id'))
>
>
>this.cursor_name is the name of one cursor and cur is the name of another. VFP gives me the compile error 'Function name is missing )'.
>I do not see any missing parens, so something must be provoking the compiler to expect a close parens prematurely. BTW, my usage of EVAL and the parens around this.cursor_name are based on what has worked for me through trial and error.
>
>Thanks in advance
try using macro expansion instead of (this.cursorname)