snazzyCrunch
Technical User
Hi,
i'm using CR8.5. I have a formula named @custName. the fields in the database sometimes contain extra characters I don't want to display. i'm trying to use the split function to split the field with a delimiter of " ", and take the first field.
Here's my code (using Crystal Syntax):
if ({CUSTOMER_NAME} = "funkyCustomer"
then
split({SERVICE_NAME}, " "
else
{SERVICE_NAME}
Thus, if the SERVICE_NAME field contained "CSC2311 C++ Programming", then I would like to grab everything up to the space, "CSC2311".
Thanks in advance. I don't have the help installed and there is nothing in the manual about the split function.
snazzyC.
![[morning] [morning] [morning]](/data/assets/smilies/morning.gif)
i'm using CR8.5. I have a formula named @custName. the fields in the database sometimes contain extra characters I don't want to display. i'm trying to use the split function to split the field with a delimiter of " ", and take the first field.
Here's my code (using Crystal Syntax):
if ({CUSTOMER_NAME} = "funkyCustomer"
then
split({SERVICE_NAME}, " "
else
{SERVICE_NAME}
Thus, if the SERVICE_NAME field contained "CSC2311 C++ Programming", then I would like to grab everything up to the space, "CSC2311".
Thanks in advance. I don't have the help installed and there is nothing in the manual about the split function.
snazzyC.
![[morning] [morning] [morning]](/data/assets/smilies/morning.gif)