¿ªÔÆÌåÓý

Parentheses in table names? Odd behavior, kind of buggy.


 

If I reference a table name that has parentheses in the filename, the first set of parentheses are ignored when determining where to look for that table.

Here's a simple table group:

:Start
1,[Names, Human (NE) (female).Start]
2,[Names, Human (female).Start]
3,[Names, Human.Start]

And here's the output complaints from each line (note the extra space in the middle one; it removed the "(female)" but retained the space:

***ERROR on line 2 of table 'Names, Kender (female)' - Table 'Names, Human (female)' not found. ***

***ERROR on line 3 of table 'Names, Kender (female)' - Table 'Names, Human ' not found. ***

***ERROR on line 4 of table 'Names, Kender (female)' - Table 'Names, Human' not found. ***


 

Parentheses are used to pass parameters to a referenced table. I'm guessing that TableSmith is interpreting the first set of parentheses in the filename as "This is not part of the filename; the stuff in the parentheses are parameter values to be passed to the referenced table."

Erol K. Bayburt
ErolB1@...

On 10/29/2023 3:25 AM, groups@... wrote:
If I reference a table name that has parentheses in the filename, the first set of parentheses are ignored when determining where to look for that table.
Here's a simple table group:
:Start
1,[Names, Human (NE) (female).Start]
2,[Names, Human (female).Start]
3,[Names, Human.Start]
And here's the output complaints from each line (note the extra space in the middle one; it removed the "(female)" but retained the space:
***ERROR on line 2 of table 'Names, Kender (female)' - Table 'Names,
Human (female)' not found. ***
***ERROR on line 3 of table 'Names, Kender (female)' - Table 'Names,
Human ' not found. ***
***ERROR on line 4 of table 'Names, Kender (female)' - Table 'Names,
Human' not found. ***


 

Is there a section of the help file I should look at for that? I don't find it described anywhere...


 

Using parentheses to pass parameters is described in "Passing Parameters to Tables" in the help file. Other than that, I'm not aware of anything else in the help file, other than a warning about sticking to alphanumerics (i.e.; letters and numbers) and underscores ("_") in group names (under "Groups" in the help file).

It is only a guess on my part that the first set of parentheses in the middle of a table filename are being interpreted as passing parameters rather than as part of the filename.

Erol K. Bayburt
ErolB1@...

On 10/29/2023 6:17 PM, groups@... wrote:
Is there a section of the help file I should look at for that? I don't find it described anywhere...
_._,_._,_
------------------------------------------------------------------------


 

There's nothing in the help file for filename formatting since this has never actually come up until now. There is a dialog that pops up if you create a new table through the TS UI and use characters other alphanumeric: "Table names may only contain letters ('A'-'Z', 'a'-'z'), numbers (0-9), space, or underscore('_')." And the help file does specify that groups should follow that naming format, though I realize that it doesn't mention filenames. Additionally, most people are going to create tables outside of the TS UI and copy them to the table folders, so likely they wouldn't see that error dialog.

I haven't decided how the help for v6 will be stored but I'll make a note to mention file naming conventions.

------- Original Message -------
On Sunday, October 29th, 2023 at 7:28 PM, ErolB1 via groups.io <ErolB1@...> wrote:




Using parentheses to pass parameters is described in "Passing Parameters
to Tables" in the help file. Other than that, I'm not aware of anything
else in the help file, other than a warning about sticking to
alphanumerics (i.e.; letters and numbers) and underscores ("_") in group
names (under "Groups" in the help file).

It is only a guess on my part that the first set of parentheses in the
middle of a table filename are being interpreted as passing parameters
rather than as part of the filename.

Erol K. Bayburt
ErolB1@...

On 10/29/2023 6:17 PM, groups@... wrote:

Is there a section of the help file I should look at for that? I don't
find it described anywhere...
.,.,_
------------------------------------------------------------------------



 

Ears prick up. V6?! Oooo!