Code:
function AddTextbox( $GroupBox, $label, $textvalue, $x1, $y1, $width, $height )
	dim $lbl, $textbox

	$lbl = $GroupBox.Controls.Add( "Label" )
	$lbl.text = $label
	$lbl.location = $x1, $y1
	$lbl.size = $width, $height

	$textbox = $GroupBox.Controls.Add( "TextBox" )
	$textbox.text = $textvalue
	$textbox.location = $x1+$width, $y1
	$textbox.size = $width, $height
	$textbox.BackColor=$Form.BackColor
	$textbox.Enabled=0
endfunction

function Trim( $str )
	$trim = LTrim( RTrim($str) )
endfunction

and now the only problem is that i get another error in this line Specificly
 Code:
$lbl.location = $x1, $y1
the error is "unexpected command"
hopefully you can help with this