IsPalette()

Syntax

Result = IsPalette(#Palette)
Description
Tests if the given #Palette number is a valid and correctly initialized palette. This function is bullet-proof and can be used with any value. If the 'Result' is not zero then the object is valid and initialized, else it returns zero. This is the correct way to ensure than a palette is ready to use.

Supported OS

Windows, Linux

<- InitPalette() - Palette Index - LoadPalette() ->