>Dear professors
>
>I write following select statement in edit1.value
>
>Select * from vouchers
>
>I want to run this command through command button.
>What should I write on the click event of command1 to run codes written in edit1.value.
>
>Please help
Tariq,
Though I wouldn't suggest this works:
local lcStr
lcStr = thisform.Edit1.VAlue
&lcStr
Alternatively (VFP7 and later):
ExecScript(thisform.edit1.VAlue)
Cetin