UnsupportedFormatException

From Real Software Documentation

Jump to: navigation, search
Class (inherits from RuntimeException)

Occurs when you use a String expression that cannot be evaluated.


Notes

Real Studio allows you to 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.

An UnsupportedFormatException error will occur when you try to use a codec with QTVideoTrack that is not installed on the end user's computer. When you use one of the QTVideoTrack class constants to set the codec, check for an UnsupportedFormatException before proceeding.

Examples

The following specification causes an UnsupportedFormatException runtime error:

ListBox1.ColumnWidths="50,50i"

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

See Also

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

Personal tools