Problem with ADOTable
-
procedure TForm1.Button1Click(Sender: TObject); begin list1:=ADOTable1.FieldByName('login').AsString; label3.Caption:=list1; list2:=ADOTable1.FieldByName('password').AsString; label4.Caption:=list2; If edit2.Text=list2 Then label5.Caption:='0' else label5.Caption:='1'; end;
The condition is always incorrect (label5 turns 1), although the right password is inserted into edit2. Tell me what I'm doing wrong.
-
I can assume it's faint.
varchar
- andADOTable1.FieldByName('password').AsString
returns, let's not."pass"
♪"pass "
♪ I mean, there's a stack of requests in the back of the field.