Курсовая работа: Розрахунок норм вектору
operList. Enabled: =true;
end;
end;
end;
procedure TmatrEditor. itemNombChange (Sender: TObject);
var saveVal: real;
begin
if matrRecLink (mainList [nowItem]) ^. typeOf=matr then
begin
saveVal: =matrRecLink (mainList [nowItem]) ^. mt [matrViev. Col+1,matrViev. Row+1];
try
matrRecLink (mainList [nowItem]) ^. mt [matrViev. Col+1,matrViev. Row+1]: =StrToFloat (itemNomb. Text);
matrViev. Cells [matrViev. Col,matrViev. Row]: =FloatToStr (matrRecLink (mainList [nowItem]) ^. mt [matrViev. Col+1,matrViev. Row+1]);
except
on EConvertError do begin
matrRecLink (mainList [nowItem]) ^. mt [matrViev. Col+1,matrViev. Row+1]: =saveVal;
matrViev. Cells [matrViev. Col,matrViev. Row]: =FloatToStr (saveVal);
itemNomb. Text: =FloatToStr (saveVal);
end;
end;
end;
if matrRecLink (mainList [nowItem]) ^. typeOf=vect then
begin
saveVal: =matrRecLink (mainList [nowItem]) ^. vt [vectViev. Col+1];
try
matrRecLink (mainList [nowItem]) ^. vt [vectViev. Col+1]: =StrToFloat (itemNomb. Text);
Label3. Caption: =FloatToStr (vectViev. Col);
vectViev. Cells [vectViev. Col,vectViev. Row]: =FloatToStr (matrRecLink (mainList [nowItem]) ^. vt [vectViev. Col+1]);
except