When I call my showTableSummary function is gives me a mismatched type error.
It was working before not sure how to fix it. This is my code for it:
{
tableNames: tables;
tableSummary: ()!();
// Initialize an empty dictionary
{tableSummary: count get x} each tableNames;
// get retrieves data from the table
// use tableSummary: to assign value to key x
tableSummary
// Return the dictionary
}
Hi !
Try removing the section where you declare an empty dictionary:
tableSummary: ()!();
This is unnecessary as the code can recognise you’re assigning it to a dictionary, given the syntax of the variable name.
Let me know if this works!
Megan
Hi Megan,
Unfortunately, this did not work for me either.
Praviga.
Hi ,
Here are some hints to help simplify your function:
count each `. ** tables **- returns the number of rows in each table
list1 ! list2 - joins these two lists together to create a dictionary
If you are still stuck let me know,
Megan