>Hello all
>
>Georges right,
>i get the lcValue not found error
>
>like Cetin suggested i'm trying it now wiht "sql where clause"
>
>now i'v got the same problem, the code looks like this:
>(in ComboBox's Valid event):
>
>local cgridhandle, cField, cValue, cMethod
>cgridhandle = this.cbgrid
>cField = this.cbfield
>cValue = alltrim(this.value)
>cMethod = "thisform."+(cgridhandle)+".cudpsql("+(cField)+","+(cValue)+")"
>&cMethod
>
>i'v just tested the variables in the event with "wait windows", they all show correct values!
>and the cMethod looks also correct, but i get Error: e.g. Variable de_dust is not found (this is Value of combobox)
>
>i just want to call a method of the grid (cudpsql) with two parameters
>
>the rest should then be out of combobox's scope and i can relax :)
>
>Christian
local cgridhandle, cField, cValue, cMethod, loGrid
cgridhandle = this.cbgrid
cField = this.cbfield
cValue = alltrim(this.value)
loGrid=evaluate('this.parent.'+this.cbGrid)
loGrid.CudpSQL(m.cField, m.cValue)
If it's not broken, fix it until it is.
My Blog