UnsupportedFormatException

From Xojo Documentation

Class (inherits from RuntimeException)

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 Date format or an inaccessible FolderItem path.

Properties
CallStack Message Stack
ErrorNumber Stack
Methods
CallStack Stack

Notes

You can use a string expression to set the column widths via the ListColumn class or the ColumnWidths property of the ListBox. 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.

Sample Code

The following specification causes an UnsupportedFormatException runtime error:

ListBox1.ColumnWidths = "50,50i" // not a valid width

Here is a Try statement that catches UnsupportedFormatExceptions inside a For loop.

Try
source = Picture.FromData(file.Data)
Catch err As UnsupportedFormatException
// not a picture
Continue
End Try

See Also

Date, FolderItem, ListBox, ListColumn, RuntimeException classes; Exception, Try statements.