Subject | Re: [IBO] String parsing issue with TableName setting |
---|---|
Author | Helen Borrie |
Post date | 2013-11-27T05:11:05Z |
At 04:04 p.m. 27/11/2013, Robert Martin wrote:
AFAIK, the value you really want is Nil. No quotes - Nil in Pascal is kinda like a null in SQL.
Helen
>Hi JasonCorrectly! an "empty string" is still a string. As it's parsed as an illegal string for the name of a table, IBO obligingly double-quotes it for you, to try to make it legal.
>
>If you have a IBOTable component (not active) and set it's .TableName
>property to '' (empty string) this is parsed to "" (A double quoted
>empty string). I guess this is code designed to make sure reserved
>words are quoted that this failing. I broke my code nicely as I am
>using an empty TableName to indicate a table needs to be assigned in code.
>
>Test code...
>
> IBOTable1.TableName := '';
> ShowMessage(IBOTable1.TableName); //Displays ""
AFAIK, the value you really want is Nil. No quotes - Nil in Pascal is kinda like a null in SQL.
Helen