Hello
Zitat:
to verify that the S always starts with 'BTR' i mean like
if not (S) starts with ('BTR') then exit else Continue .
The function AnsiStartsStr() indicates whether one string is a (case-sensitive) prefix of another.
AnsiStartsStr returns True if the string specified by ASubText appears as the leading part of the string specified by AText. Comparison is performed case-sensitively.
Zitat:
and i want to be sure the file name contains only A..Z or 0..9 so only letters and numbers .
Go through all characters in the string and check if they are within the desired range (A..Z or 0..9)