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
    
    
    Run

How do I create a type depending on a variable?

TIA

Reply via email to