StrataFrame Forum

InfoBox Message Loses Spaces

http://forum.strataframe.net/Topic16634.aspx

By Aaron Young - 5/27/2008

This is a strange one in that the InfoBox appears to drop spaces without any reason. For example, the following code shows a message like "The vehicletype has no payload quantity".

MicroFour.StrataFrame.Messaging.InfoBox.ErrorBox("Error", "The vehicle type has no payload quantity");

In addition, this code (with two spaces between the "vehicle" and "type") shows a message like "The vehicle typehas no payload quantity". There is only one space between the displayed "vehicle" and "type" and the space before "has" has gone.

MicroFour.StrataFrame.Messaging.InfoBox.ErrorBox("Error", "The vehicle  type has no payload quantity");

A strange one!

By Trent L. Taylor - 5/27/2008

Is the text unicode and/or do you have a line feed or carriage return in the text?  This sounds like something other than a space may be in the text.  I have seen this before (not on the InfoBox) but once a debug was performed and each character inspected, there was something else in the mix.  You might debug the code before you call the InfoBox and see character for character what the ascii or unicode value of each character is...it might clue you in as to what is going on.