Hi,
I trying to put commonly used code into a reusable library. This includes queries to get and correctly format addresses. I’m moving the working code from the onLoad event into a library.
When pulling in the library code, the generator is copying the code directly instead of converting the macro and globals. I tried sc_include instead of using the library, but it did not seem to make any difference.
$sql=‘select col1, col2, col3 from myTable’;
sc_lookup(rs, $sql);
$res=’’;
if (isset({rs[0][0]})) {
$res.={rs[0][1]}; // col 1
…
}
Any ideas on how to get this working? I have asked which macros work in libraries and I have been told most should.
Many thanks - Jim