Jump to content
We've recently updated our Privacy Statement, available here ×

Find occurence of a char ?


forstera

Recommended Posts

Hello all,

I'm really new in jasper, so doesn't know if possible ...

I need to print a product name. If this product name has a code, the variable to print will be formed by the product code  and the product name. The product code will be placed between [ ]. So, it will look like this :

[My product code] Here's my product name

If the product has no code, onl y the procduct name will be displayed. What I've to do is : if there's a code, I need to remove the [ ] and if there's no code, so I've to fill with white spaces (15). The idea, when printing, is to have always the first column reserved for the product code .

So, I don't know if there's a function to find a char in a string. According to the fact that when there's a product code, the first char of the sring will be a [, I need to know where will be the ] char (the code has not always the same length).

is there a way to do that ? Per advance, thanks very much for your help

Best Regards

Arnaud

Link to comment
Share on other sites

  • 4 weeks later...
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...