Im trying to make it so once different text is entered the shape will change color but it says theres a problem with ('A .. 'Z') being 'Expected ) but received a string literal ''A'' '. and im not sure how to fix it. Any help appreciated, thanks!
type
TCapitalLetter = ('A' .. 'Z' ); //subrange of type char
TDigit = ('0' .. '9' ); //subrage of type char
Your definition is close, but it's not quite right:
From your other question, though, I don't think that's what you really need to do. You're looking for membership (some character being contained in that type), in which case you need to do it using sets. It's a console application you can just compile and test:
For earlier (non-Unicode) versions of Delphi, you need to use
set of Char
instead ofTSysCharSet
, and use a slightly different syntax for the set membership:Output of test app: