Einzelnen Beitrag anzeigen

Victore

Registriert seit: 11. Nov 2005
13 Beiträge
 
#9

Re: ekRTF: eine Variable in der Vorlage anhängen

  Alt 23. Nov 2005, 09:10
Klar gibts da Beispiele. Nur keines, das auf mein Problem eine Lösung bietet

Was zum Henker bedeutet das hier? Die anderen Beispiele raff ich ja noch, aber folgendes, was für mich nützlich wäre...
Kann mir das bitte jemand erklären?


VAR function

VAR(VAR1, ... , VAR N) - creates variables VAR1, ... VAR N if they don't exist.

Initial value for each new created variable is empty string. If report variable exists, it is not changed in any way. When you use declared variable with UDF, you may need to init its value by your own code.

Example:

\scan(a), var(totsal), my_init_function(totsal)\
-----------------------------
\scan(b), my_sum_function(b:field1,totsal)\
\b:number\ \b:field1\
\endscan\
total: \totsal\
\endscan\
  Mit Zitat antworten Zitat