Can anyone tell me why this code doesn't compile ? I get: Incompatible types. the copy function seems to be of type caption while ord only accepts a char. How could I solve this?
if( (ord(copy(edtPostcode.text,6,1)) < 65 ) then
I mean to build a check to see if character 6 and 7 are in the range ['A'..'Z'] I also tried:
if( copy(edtPostcode.text,6,1) in ['A'..'Z'] ) then
but that also didn't work...
Hope someone can help me.