Jump to content

Hexcode


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

Recommended Posts

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?

Link to comment
Share on other sites

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
Link to comment
Share on other sites

This topic is 5703 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
 Share

×
×
  • Create New...

Important Information

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