Page 1 of 1

Error message - mismatch

PostPosted: Fri Jan 27, 2017 1:19 pm
by John Robin Dove
Hi Clifton,

I wonder if you could help me with this please. I have a system that mimicks a request dialog box. It has always worked correctly. I send a user event to an object to activate it. This is a a string with values separated by commas. Today I realised that in certain cases I cannot use commas because the values themselves contain commas. so I decided to use the ยง character instead as you can see in this picture.

Image

I changed the code but got this error: Image

This is caused by the disabled code in the picture below. If I enable it I get the error.

Image

I'm hoping you can tell me why.

John

Re: Error message - mismatch

PostPosted: Fri Jan 27, 2017 1:44 pm
by Clifton
For starters, it looks like you have a variable reference issue at the highlighted line:
Image 3.png
Variable mismatch error line
Image 3.png (5.89 KiB) Viewed 735 times
Once you correct that, the export may work fine.

Re: Error message - mismatch

PostPosted: Sat Jan 28, 2017 4:16 am
by John Robin Dove
Oops! The bug was in my brain!

Actually it's not the first time this has happened. I should have known better. If you misspell a variable Toolbook responds by stealthily putting it in inverted commas without informing you. If it can do that it could also show an error message which would be much more useful but sadly this is missing.

However, this is no excuse for sending you a question and a picture containg the answer!