private void ParseEpair(ref SEpair _Epair)
        {
            if (vScript.Token.Length >= MAX_KEY - 1)
            {
                CMain.Error(CMain.EErrorParm.ERR_FATAL, "ParseEpair: token too long\nKey: " + vScript.Token);
            }
            _Epair.Key = vScript.Token.ToLower();

            vScript.GetToken(false);

            if (vScript.Token.Length >= MAX_VALUE - 1)
            {
                CMain.Error(CMain.EErrorParm.ERR_FATAL, "ParseEpair: token too long\nValue: " + vScript.Token);
            }
            _Epair.Value = vScript.Token;

            // strip trailing spaces that sometimes get accidentally added in the editor
            _Epair.Key = _Epair.Key.Trim();
            _Epair.Value = _Epair.Value.Trim();
        }
        public string ValueForKey(SEpair[] _Epairs, string Key)
        {
            for (int i = 0; i < _Epairs.Length; i++)
            {
                if (_Epairs[i].Key == Key)
                    return _Epairs[i].Value;
            }

            return "";
        }