AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

Fastreport Variable

Ein Thema von manfred_h · begonnen am 12. Apr 2007 · letzter Beitrag vom 28. Aug 2007
Antwort Antwort
manfred_h

Registriert seit: 4. Nov 2005
Ort: Basel
442 Beiträge
 
Delphi XE2 Enterprise
 
#1

Fastreport Variable

  Alt 12. Apr 2007, 10:35
Halo zusammen

habe in meinem Projekt mehrere Reporte mit den gleichen Variablen
( es sind echt viele versch. Variablen ).

bisher habe ich das so versucht:

Delphi-Quellcode:
  with DM_reports.rep_camp_ov, DM_reports.rep_member do
  begin
// Fastreport Variable set START

    Variables['var_camp_region'] := '''' + lbl_region.Caption + '''';
    Variables['var_camp_country'] := '''' + lbl_country.Caption + '''';
Das Problem ist aber das die Variablen nur beim letzten Report gesetzt werden.
>> DM_reports.rep_member

für Tipps dankbar
Shalom
Manfred
  Mit Zitat antworten Zitat
Dezipaitor

Registriert seit: 14. Apr 2003
Ort: Stuttgart
1.701 Beiträge
 
Delphi 7 Professional
 
#2

Re: Fastreport Variable

  Alt 12. Apr 2007, 11:23
Du musst schon für alle Reports, diesen Schritt einzeln wiederholen.

Das With sollte man sowieso nur "seltenst" verwenden.
Christian
Windows, Tokens, Access Control List, Dateisicherheit, Desktop, Vista Elevation?
Goto: JEDI API LIB & Windows Security Code Library (JWSCL)
  Mit Zitat antworten Zitat
manfred_h

Registriert seit: 4. Nov 2005
Ort: Basel
442 Beiträge
 
Delphi XE2 Enterprise
 
#3

Re: Fastreport Variable

  Alt 12. Apr 2007, 13:02
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?
  Mit Zitat antworten Zitat
mkinzler
(Moderator)

Registriert seit: 9. Dez 2005
Ort: Heilbronn
39.851 Beiträge
 
Delphi 11 Alexandria
 
#4

Re: Fastreport Variable

  Alt 12. Apr 2007, 13:03
Wenn manche Eigenschaften dann nicht mehr eindeutig zugeordnet werden können.
Markus Kinzler
  Mit Zitat antworten Zitat
manfred_h

Registriert seit: 4. Nov 2005
Ort: Basel
442 Beiträge
 
Delphi XE2 Enterprise
 
#5

Re: Fastreport Variable

  Alt 12. Apr 2007, 13:09
Wenn ich jetzt aber in dem Fall ca. 50 Variablen so "erstelle" ist das ok?
  Mit Zitat antworten Zitat
HaJo

Registriert seit: 28. Apr 2004
Ort: Würselen
140 Beiträge
 
Delphi 8 Enterprise
 
#6

Re: Fastreport Variable

  Alt 28. Aug 2007, 17:40
welchen Sinn machen so viele Variablen denn noch? Gehören die nicht besser in eine Datentabelle??
Hans-Joachim Brosius
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 10:49 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz