Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set filter with combobox
Message
 
 
To
21/08/2001 14:07:55
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00546844
Message ID:
00546896
Views:
13
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform