Results 1 to 3 of 3

Thread: Formula Workshop

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2009
    Posts
    2

    Formula Workshop

    I'm trying to use a function in the Formula Workshop to delimit data from a table. Previously I was using coalesce like below:

    select res = coalesce(res + '|', '') + text
    from MyTable;

    I'm assuming that Crystal doesn't have the coalesce. Is there anything that I can use in replacement of coalesce to do the same.

    Thanks,

    Iris

  2. #2
    Frenzied Member
    Join Date
    May 2006
    Location
    some place in the cloud
    Posts
    1,886

    Re: Formula Workshop

    AFAIK, COALESCE returns the first nonnull expression among a serie of arguments
    Then you could try a serie of If-Then-Else

  3. #3

    Thread Starter
    New Member
    Join Date
    Aug 2009
    Posts
    2

    Re: Formula Workshop

    When I try to do any select statement in the function, I get an error message:

    A number, currency amount, boolean, date, time, date-time, or string is expected here.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width