Using Trim

edited 11:40PM in FastReport 3.0
If I use the following code:

[Trim(<dbtStaff."VORNAME"> + <dbtStaff."NAME">)]

How do I insert a space between the both db-var's??

Some like this, didn't work:

[Trim(<dbtStaff."VORNAME"> + " " + <dbtStaff."NAME">)]

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 11:40PM
    use the trim function on each member seperately
    ie a memo could contain
    [Trim(<dbtStaff."VORNAME"> ] [Trim(<dbtStaff."NAME">)]
    the number of spaces between the left inner and right inner ] [ will be there
    or if cocantenating to a string var declared in code
    mystring := [Trim(<dbtStaff."VORNAME"> ]+' '+ [Trim(<dbtStaff."NAME">)]

    ;)
  • edited 11:40PM
    kaju74 wrote:
    If I use the following code:

    [Trim(<dbtStaff."VORNAME"> + <dbtStaff."NAME">)]

    How do I insert a space between the both db-var's??

    Some like this, didn't work:

    [Trim(<dbtStaff."VORNAME"> + " " + <dbtStaff."NAME">)]
    Correct is
    [Trim(<dbtStaff."VORNAME"> + ' ' + <dbtStaff."NAME">)]

Leave a Comment