Jump to content
Server Maintenance This Week. ×

Problem with String.Split


This topic is 5928 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Hello,

I'm using your ScriptMaster plugin (1.6.3), and I have a Java/Groovy problem that I cannot resolve, despite researching it online. Suppose I have the following code:

fruits = apple~orange~banana~~~;

fruitsArray = fruits.split("~");

Apparently, Java discards the trailing empty strings, which means referencing fruitsArray[4] produces an error (which often causes FileMaker to hang), so how I can preserve the trailing empty strings?

Regards,

Sean Mills

Link to comment
Share on other sites

This topic is 5928 days old. Please don't post here. Open a new topic instead.

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...

Important Information

By using this site, you agree to our Terms of Use.