470,833 Members | 1,510 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,833 developers. It's quick & easy.

Creating a look up table


I have a problem during creating a lookup table. I have to map some text to something else. For example LookUp{" Hello World"} = " Ok Hello";

My question is how do I map if there is a comma between Hello and World i.e Hello, World

LookUp{"Hello, World"} = "Ok Hello"; doesn't work. I am a novice, please help.
Oct 29 '08 #1
1 2940
4,059 Expert 2GB
The comma is no problem:

Expand|Select|Wrap|Line Numbers
  1. $LookUp{"Hello, World"} = "Ok Hello";
  2. print $LookUp{"Hello, World"};
So the problem is elsewhere in your code, that we can't see.
Oct 29 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

11 posts views Thread by Joshua Beall | last post: by
31 posts views Thread by Neil | last post: by
1 post views Thread by paulakeijzers | last post: by
3 posts views Thread by CanFlightSim | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.