From Xojo Documentation
|You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!|
Occurs when the supplied information is in an unsupported format. This can happen in many situations, including: using a String expression that cannot be evaluated, a bad DateTime format or an inaccessible FolderItem path.
You can use a string expression to set the column widths via the DesktopListBoxColumn class or the ColumnWidths property of the DesktopListBox. You can use the percent sign or the "*" symbol, as described in those sections. If you use a character that is not permitted, an UnsupportedFormatException will occur.
The following specification causes an UnsupportedFormatException runtime error:
Here is a Try statement that catches UnsupportedFormatExceptions when accessing a picture's data.
source = Picture.FromData(file.Data)
Catch err As UnsupportedFormatException
// not a picture