OriginPro 2020b, Windows 10 I have a very long SQL query where labtalk variable substitution fails. When I try to preview the query with substitution, my scrip prompts for a value, but the substitution never happens. If I remove any one of several subqueries, the substitution works fine. I have verified the query works by using a text editor to make the substitution and running the query. The entire sql set is slightly less than 8000 characters and there are 15 substitutions. The substituted value is shorter then the variable name so the total number of characters decreases slightly after substitution.
What are the limits associated with labtalk substitution in the SQL editor in terms of lines, characters, substitutions, etc? Thanks.
That was the issue. I was exceeding the character limit. I was able to shorten some names and eliminate some white space that had been added for readability, and the substitution now works. Thanks.