Jump to content
Salesforce and other SMB Solutions are coming soon. ×

MBS Syntax Colorizing saves the day!


Monkeybreadsoftware
 Share

Recommended Posts

  • Advertiser

We received an email today from Russell Watson and we like to share it with you:

For some reason in our solution some global variables were not being defined … 

Where we always define 3 debugging variables ...

RusselStory2.jpg

… for some reason only one was being defined:

RusselStory6.jpg

What’s up?

Having first checked everywhere, that three global variables were being defined, we finally got on the track of the bug thanks to the MBS plugin syntax coloring, which was showing an ‘anomaly’ in one of the Let definitions:

RusselStory3.jpg

Why is the first $ black?

Inspecting the DDR with a text editor which displays control characters (Textmate 2) gave us the final clue:

RusselStory4.jpg

In the middle of the calculation, just in front of the $$ variable name there are UTF-16 BOM-characters to be found!

(A BOM is a Byte-Order-Mark which usually is only to be found at the very start of a UTF-16 text file, as can be seen when you look at a UTF-16 text file with a hex-editor, for example a DDR file:

RusselStory5.jpg

The FF identifies the low byte and the FE identifies the high byte … thus the U+FEFF in the editor is the unicode BOM code point)

Editing the calculation to remove and re-enter the whitespace and the first $ symbol cleared the problem:

RusselStory1.jpg

MBS Plugin happy = We’re happy !

Thank you MBS!
Thank you Christian Schmitz!

If you have stories to share, please let us know.

 

PS: Syntax coloring is a free feature of MBS Plugins for FileMaker on MacOS.

Link to comment
Share on other sites

This thread is quite old. Please start a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



×
×
  • Create New...

Important Information

Terms of Use