This does not work, but illustrates what I'm looking for:
type FileBits = case BitDepth
of 8: uint8
of 16: uint16
of 24: uint32
of 32: uint32
of 64: uint64
else : discard
RunHow do I create a type depending on a variable? TIA
