void form_load(Object _sender, EventArgs _e1) { string str = String.Empty; sMTOperator opInfo = new sMTOperator(); sMTFunction funcInfo = new sMTFunction(); sMTConstant constInfo = new sMTConstant(); int nbOps = 0; int t = 0; int nbFuncs = 0; int nbConsts = 0; MTParserLocalizer loc = new MTParserLocalizer(); sMTSyntax syntax = m_parser.getSyntax(); nbOps = m_parser.getNbDefinedOps(); for (t = 0; t <= nbOps - 1; t += 1) { opInfo = m_parser.getOp(t); try { opInfo = loc.getOpInfo(opInfo.ID); } catch (Exception) {} str = opInfo.symbol + (char)(9) + opInfo.helpString + (char)(9) + opInfo.description; Operators.Items.Add(str); } nbFuncs = m_parser.getNbDefinedFuncs(); for (t = 0; t <= nbFuncs - 1; t += 1) { funcInfo = m_parser.getFunc(t); try { funcInfo = loc.getFuncInfo(funcInfo.ID, ref syntax); } catch (Exception) {} str = funcInfo.symbol + (char)(9) + funcInfo.helpString + (char)(9) + funcInfo.description; Functions.Items.Add(str); } nbConsts = m_parser.getNbDefinedConsts(); for (t = 0; t <= nbConsts - 1; t += 1) { constInfo = m_parser.getConst(t); str = constInfo.name + (char)(9) + constInfo.value; Constants.Items.Add(str); } }
void form_load(Object _sender, EventArgs _e1) { string str = String.Empty; sMTOperator opInfo = new sMTOperator(); sMTFunction funcInfo = new sMTFunction(); sMTConstant constInfo = new sMTConstant(); int nbOps = 0; int t = 0; int nbFuncs = 0; int nbConsts = 0; MTParserLocalizer loc = new MTParserLocalizer(); sMTSyntax syntax = m_parser.getSyntax(); nbOps = m_parser.getNbDefinedOps(); for(t = 0; t <= nbOps - 1; t += 1) { opInfo = m_parser.getOp(t); try { opInfo = loc.getOpInfo(opInfo.ID); } catch( Exception ){} str = opInfo.symbol + (char)(9) + opInfo.helpString + (char)(9) + opInfo.description; Operators.Items.Add(str); } nbFuncs = m_parser.getNbDefinedFuncs(); for(t = 0; t <= nbFuncs - 1; t += 1) { funcInfo = m_parser.getFunc(t); try { funcInfo = loc.getFuncInfo(funcInfo.ID, ref syntax); } catch( Exception ){} str = funcInfo.symbol + (char)(9) + funcInfo.helpString + (char)(9) + funcInfo.description; Functions.Items.Add(str); } nbConsts = m_parser.getNbDefinedConsts(); for(t = 0; t <= nbConsts - 1; t += 1) { constInfo = m_parser.getConst(t); str = constInfo.name + (char)(9) + constInfo.value; Constants.Items.Add(str); } }