Sub btnGenerateProperties_MouseClicked (EventData As MouseEvent)
txtProperties.Text = ""
sb_out.Initialize
sb.Initialize
Dim mainString() As String
mainString = Regex.Split(CRLF,txtVariables.Text)
For i = 0 To mainString.Length -1
mainString(i) = mainString(i).Trim
If mainString(i).StartsWith("'") Or mainString(i) = "" Then Continue
Dim variables() As String
variables = Regex.Split(" ",mainString(i))
Log(variables(1))
sb.Append("Sub get" & variables(1) & " " & variables(2) & " " & variables(3) & CRLF)
sb.Append(TAB & "Return " & variables(1) & CRLF)
sb.Append("End Sub" & CRLF)
sb.Append("Sub set" & variables(1) & " " & " (t " & variables(2) & " " & variables(3) & ")" & CRLF)
sb.Append(TAB & variables(1) & " = t" & CRLF)
sb.Append("End Sub")
Log(sb.tostring)
Next
txtProperties.Text = sb.ToString
End Sub