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.

Bug in Substitute Function

Featured Replies

Hi all,

im new in this forum and my english is not so fine, but I'll try

to explain what happens as well i can do.

I'm working in a fp7 file in which a script uses a replace function

to change some word in a text field.

Well the fact is that if the text field dimension is under 3800 chars (nearly)

all goes fine. If the text field dimension is over 3800 chars(nearly) the resulting text is wrong

(some replace are doubled, and the end of text is cutted).

I think that is a bug related only to fp7 because in fp5 the same script works fine.

Thanks in advance for your answers and sorry again for my bad english.

Andrea

  • Author

up pls

Have you installed the v2 patch yet? It might be fixed already.

  • Author

Have you installed the v2 patch yet? It might be fixed already.

Ya, I've yet installed the V2 patch. I must apologize for mistake in thread title.

The bug I found is about the [color:"red"] Substitute Function (not the replace function as I wrote).

I'll start a new thread in forum with the right title.

However everyone can check himself:

[color:"red"]1) Create a new fmp7 file

[color:"red"]2) Define 2 simple text field (text1 and text2).

[color:"red"]3) Create 1 simple Script in which Set field [color:"blue"] text2 as Substitute(text1; "sometext"; "someothertext")

[color:"red"]4) go in browse mode and fill text1 field with text to reach more than 4.000 chars

(obviously u must insert the word "sometext" of the Substitute function above.)

[color:"red"]5) Run the Script and unfortunately you'll find in text2 field the

word "someothertext" doubled (practically "someothertextsomeothertext")

Please may everybody check it and give me a feedback?

Thanks guys

Yes, that's a bug.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.