I am trying to use a line like
"if string = '.bmp' or '.jpg' then
but I get
[DCC Warning] MAIN.PAS(376): W1058 Implicit string cast with potential data loss from 'string' to 'ShortString'
It also doesn't seem to work if I type
"if string = 'bmp' or if string = '.jpg' "then
how can I write this ?