I notice this issue… any suggestion?
this command in version 5 works in version 6 doesn’t works!!!:
$str_where = " WHERE field1=’". [v_test] . "’ "; // test is a global var
sc_lookup(rs, “SELECT field1, field2 FROM code”. $str_where . “ORDER BY field2”);
I must use:
$str_where = " WHERE field1=’" . [v_test] . "’ ";
$str_sql = “SELECT field1, field2 FROM code”. $str_where . “ORDER BY field2”;
sc_lookup(rs, $str_sql);
In version 6 in a macro couldn’t build an sql string dynamically.
That seems to be one step back from 6 to 5 or is a bug.