0 Members and 1 Guest are viewing this topic.
If Not varsnode.Nodes.ContainsKey(linetext.Substring(0, linetext.LastIndexOf("="))) Then node = varsnode.Nodes.Add(linetext.Substring(0, linetext.LastIndexOf("=")))End If
If Regex.IsMatch(linetext, "=") Then If Not varsnode.Nodes.ContainsKey(Regex.Replace(linetext.Substring(0, linetext.LastIndexOf("=")), " ", "")) Then node = varsnode.Nodes.Add(Regex.Replace(linetext.Substring(0, linetext.LastIndexOf("=")), " ", ""), Regex.Replace(linetext.Substring(0, linetext.LastIndexOf("=")), " ", "")) End IfEnd If
If Not DoesNodeExist(varsnode, Regex.Replace(linetext.Substring(0, linetext.LastIndexOf("=")), " ", "")) Then node = varsnode.Nodes.Add(Regex.Replace(linetext.Substring(0, linetext.LastIndexOf("=")), " ", ""), Regex.Replace(linetext.Substring(0, linetext.LastIndexOf("=")), " ", ""))End If