Search found 2 matches

by Ganove
02 May 2014 15:24
Forum: DOS Batch Forum
Topic: Bi-directional access to lookup tables
Replies: 2
Views: 3827

Re: Bi-directional access to lookup tables

When it's a small number of elements I've done what you described first, a second table with the pairs inverted. It's not fancy, but it works well, and that way the code that extracts the data from the map can be identical. But before you write two maps, it's better to condense those two maps into ...
by Ganove
02 May 2014 12:10
Forum: DOS Batch Forum
Topic: Bi-directional access to lookup tables
Replies: 2
Views: 3827

Bi-directional access to lookup tables

Hi, you describe a way how to use a lookup table on your site about DOS - String Manipulation : SET v=Mai SET map=Jan-01;Feb-02;Mar-03;Apr-04;Mai-05;Jun-06;Jul-07;Aug-08;Sep-09;Oct-10;Nov-11;Dec-12 CALL SET v=%%map:*%v%-=%% SET v=%v:;=&rem.% ECHO.%v% However, with that given method of accessing ...