By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,852 Members | 2,198 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,852 IT Pros & Developers. It's quick & easy.

Creating a look up table

P: 1
Hello

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
Share this Question
Share on Google+
1 Reply


KevinADC
Expert 2.5K+
P: 4,059
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.