April 29, 200619 yr 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?
April 29, 200619 yr 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.
April 29, 200619 yr 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 April 29, 200619 yr by Guest
April 29, 200619 yr 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 April 29, 200619 yr by Guest
Create an account or sign in to comment