Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Problem with String.Split

Featured Replies

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

  • Author

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

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.