I am using the string length keyword to find the length of a string 'ItemTitle'.
When I present the StrLength routine with this string it throws up an error message
"Input String was not in a correct format".
However, the string value seems quite valid. This value is displayed in the forms titlebar in the attached image. The value of ItemTitle is 'Amanita Ceasarea'.
I defined ItemTitle as a string in the public area with Itemtitle = "Pocket Fungi".
I cannot understand why keyword StrLength would throw out this string when it holds a valid string value. This is not the first time I have had problems using StrLength keyword.
I have been programming since the MSDOS/ASM days but I never had troubles with QuickBasic or the Visual Basic string-length keyword. Nor with Borland C.
If this keyword has problems with string values maybe we need a keyword 'Cvt2String' which would take a string or numeric variable and make a properly formatted, 'happy-bunny' string out of it?
Anyone explain it to a small-brained programmer?
Thanks guys
Sarah
When I present the StrLength routine with this string it throws up an error message
"Input String was not in a correct format".
However, the string value seems quite valid. This value is displayed in the forms titlebar in the attached image. The value of ItemTitle is 'Amanita Ceasarea'.
I defined ItemTitle as a string in the public area with Itemtitle = "Pocket Fungi".
I cannot understand why keyword StrLength would throw out this string when it holds a valid string value. This is not the first time I have had problems using StrLength keyword.
I have been programming since the MSDOS/ASM days but I never had troubles with QuickBasic or the Visual Basic string-length keyword. Nor with Borland C.
If this keyword has problems with string values maybe we need a keyword 'Cvt2String' which would take a string or numeric variable and make a properly formatted, 'happy-bunny' string out of it?
Anyone explain it to a small-brained programmer?
Thanks guys
Sarah