In the function I have, CU: = ['A' .. 'Z'];
Question: How to correctly connect Edit to - CU: = Form1.Edit1.Text . If I write like this, I get an error in the form: E2010 Incompatible types: 'TSysCharSet' and 'TCaption'
I understand that the error is petty, but something is stuck ...
function IsGood(AInpStr: String; AMinLen, AMaxLen: Integer; AAlowOnlyLetters: Boolean = True): Boolean; var i: Integer; a: Boolean; Len: Integer; CU, CL: TSysCharSet; begin Result := False; Len := Length(AInpStr); /// ///// Вот тут нужно заменить /// ///// то есть (CU := Form1.Edit1.Text) CU := ['A' .. 'Z']; if AAlowOnlyLetters then begin for i := 1 to Len do begin a := CharInSet(AInpStr[i], CU); .. .. .. .. .. .. .. .. .. .. .. .
if AInpStr[i]>='A' and AInpStr[i]>='Z'or something like that. - nick_n_a 2:17