PRB: Error Message "Function Name Is Missing )" When Modifying a Remote View (260533)



The information in this article applies to:

  • Microsoft Visual FoxPro for Windows 6.0

This article was previously published under Q260533

SYMPTOMS

When you use the View Designer with the Case option set in the filter condition to modify a remote view, the following error message appears:
Function name is missing ).
When you use remote views that include case-dependent conditions in the filter, you need to create and modify the view programmatically.

RESOLUTION

The following code illustrates programmatic creation of remote views that use a case-dependent conditions in the filter:
CREATE SQL VIEW MyView REMOTE CONNECTION MyConn;
   AS SELECT * FROM TESTDATA!CUSTOMER Customer;
   WHERE UPPER(customer.cust_id) LIKE UPPER(?lccust_id)
				

MORE INFORMATION

This behavior occurs when the UPPER() function is used in the filter condition, or when the Case button is selected in the Filter tab of the View Designer.

Steps to Reproduce Behavior

  1. Create a program file named Viewdemo.prg using the following code:
    CREATE DATA TESTVIEW
    CREATE CONNECTION MYCONN CONNSTRING  "DRIVER=Microsoft Visual FoxPro Driver;" + ;
       "SourceType=DBC;SourceDB=" + HOME(2) + ;
       "data\testdata.dbc;exclusive=no;backgroundfetch=no"
    CREATE SQL VIEW MyView REMOTE CONNECTION MYCONN;
       AS SELECT * FROM TESTDATA!CUSTOMER CUSTOMER;
       WHERE UPPER(CUSTOMER.cust_id) LIKE ?UPPER(lccust_id)
    MODIFY VIEW MyView
    MODIFY VIEW MyView
    					
  2. Save and run the program.
  3. When the View Designer opens for the first time, click the Filter tab and note that the Case portion of the filter condition is checked.
  4. Press the CTRL+W keys.
  5. Note that the following error message appears when the second MODIFY VIEW command is encountered:
    Function name is missing ).

Modification Type:MajorLast Reviewed:10/15/2002
Keywords:kbBug kbCodeSnippet kbDatabase kbDesigner kbDSupport kbprb KB260533