08-04-2008 12:51 AM - edited 08-04-2008 12:52 AM
08-04-2008 12:52 AM
08-04-2008 12:56 AM
08-04-2008 01:11 AM
Simmy wrote:
thanks guys, now i will have to add like 60 cases to the case structure 😄 thanks.
08-04-2008 03:11 AM
08-04-2008 03:15 AM - edited 08-04-2008 03:15 AM
Hi Simmy,
you can use a lookup table. Create two 1D arrays. One with the values you receive and one with the values you want to output. Search for the received string in the first array and use the index to index the element in the second array.
Mike
08-04-2008 03:34 AM
08-04-2008 03:46 AM
Hi Simmy,
see the attached example please.
Hope it helps. Mike
08-04-2008 04:01 AM
08-04-2008 04:11 AM
Hi Simmy,
an advantage of this is, that your are more flexible with it. You can read the values from a configuration file, so you need no change in your source code, if you only define some new commands.
Mike