Need help with :AddControl

Okey, How can i get the value from the TextBox to the Button’s Command ?

TextBox.GetValue() didnt work

[lua]function Kamera(Panel)
Panel:ClearControls()
Panel:AddControl(“Button”, {Text = “Start Recording”, Command = “record”, TextBox.GetValue()})
Panel:AddControl(“TextBox”, {Label = “Record name:”, MaxLength = 40, Text = “Record Name”})
Panel:AddControl(“Button”, {Text = “Stop Recording”, Command = “stop”})

end[/lua]

Please help me !