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.

Featured Replies

Just started to create my first own custom function.

Functionname: Hexcode

Parameter: farg

The problem is that the function returns the 6 letter code but without the "#"

"#" &

Case(

farg="aqua";"00FFFF";

farg="beige";"F5F5DC";

farg="blå";"0000FF";

farg="blåviolett";"8A2BE2";

farg="brun";"A52A2A";

farg="chocklad";"D2691E";

farg="cyan";"00FFFF";

farg="svart";"F5F5DC";

farg="korall";"FF7F50";

farg="Mörkblå";"00008B";

farg="Mörkcyan";"008B8B"

)

Something I missed?

Works for me.

Are you using a different language version of FMP, where the # character has a special meaning? If so, it may need to be escaped.

  • Author

Using the swedish version but as far as I know # has no special meaning....

EDIT

Now it's working, wasn't a problem with the function itself but with a "middlewords" further down in the script using the function, it just grabbed the numbers and not the "#", my fault!

Thanks for your help

ps. changed "middlewords" to "middlevalues" -> now it works just fine ds.

Edited by Guest

And it has nothing to do with TextColor( requirering an integer as argument??

Perhaps you would need a CF like this one in between:

http://www.briandunning.com/cf/115

--sd

Holmberg.zip

Edited by Guest

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.