Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I want to find the number of rows in a table, and pass that value to another program via a QV variable.
I tried (in my script)
LET vNumRows=NoOfRows('Daily CAR Table') <-- I also tried 'CH12', "CH12", "Daily CAR Table", but always got NULL
but that returns NULL.
The only other way I could see to do it would be to create a macro using table.GetRowCount, but then Henric might be upset with me ;}.
Any thoughts?
Thanks,
Kevin
This discussion is a bit confusing in that it isn't entirely clear to me which rows you want to count. Therefore first a few rules:
For a logical table, put your assignment in the right spot. For a UI object, you can use a trigger and a macro like the one from your last post. However, the macro better stores the value returned by GetRowCount right into the variable by itself. See Re: howmany rows in a table
BTW this question looks analogous to Re: Number of rows in straight/pivot table into a variable? What's wrong with that discussion?