Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

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

Posted

Jesse, thanks so much. That worked!

You know, I actually did look at the other version of String.Split, but I simply entered a large number. Didn't know about the -1 parameter.

Sean

This topic is 6142 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.