Zitat von
Dezipaitor:
Das With sollte man sowieso nur "seltenst" verwenden.
Wieso denn das?
Delphi-Quellcode:
with DM_reports.rep_camp_ov do
begin
// Fastreport Variable set START
Variables['var_camp_region'] := '''' + lbl_region.Caption + '''';
Variables['var_camp_country'] := '''' + lbl_country.Caption + '''';
Variables['var_camp_zone'] := '''' + lbl_zone.Caption + '''';
Variables['var_camp_area'] := '''' + lbl_area.Caption + '''';
Variables['var_camp_no'] := '''' + lbl_admin_camp_no.Caption + '''';
Variables['var_camp'] := '''' + lbl_camp_city.Caption + '''';
Variables['var_camp_lang'] := '''' + lbl_lang.Caption + '''';
Variables['var_camp_est'] := '''' + lbl_est.Caption + '''';
Variables['var_camp_est_aux'] := '''' + lbl_est_aux.Caption + '''';
Variables['var_camp_cabinet_last_v'] := '''' + lbl_cabinet_last_v.Caption + '''';
Variables['var_camp_cabinet_next_v'] := '''' + lbl_cabinet_next_v.Caption + '''';
Variables['var_camp_m_last_v'] := '''' + lbl_m_last_v.Caption + '''';
Variables['var_camp_m_next_v'] := '''' + lbl_m_next_v.Caption + '''';
Variables['var_camp_rating'] := '''' + lbl_camp_rating.Caption + '''';
Variables['var_camp_distance'] := '''' + lbl_distance.Caption + '''';
Sowas habe ich überall in meinem Projekt und das ganze ist doch auch sehr
praktisch.
Was soll den der Nachteil sein?