GraemeOswald
Programmer
Hi,
I've just "inherited" a paradox application, and there are a few bugs in it which I'm trying to fix. The one which looks like it should be easy, but I've had a real struggle with is represented by the following snippet:
which by my (admittedly limited) understanding, should apply a filter to the table cursor on the "Complete" column which is a Logical, whenever certain buttons are pressed.
However, under Paradox 10, I always get a run-time error on the 'setGenFilter' method saying something like 'Filter expression is not valid' and then 'Can't convert True to a fldBool' and then 'Invalid Character "T"rue'.
I've tried various combinations of Logical(True), string(Logical(True)), 0, 1, string("\\0" (and many others) but nothing seems to work.
Any suggestions?
Graeme
I've just "inherited" a paradox application, and there are a few bugs in it which I'm trying to fix. The one which looks like it should be easy, but I've had a real struggle with is represented by the following snippet:
Code:
var
arRangeInfo DynArray[] AnyType
tblTC TCursor
endVar
Switch
Case ActiveButton = TRUE AND InactiveButton = FALSE:
arRangeInfo["Complete"] = FALSE
Case ActiveButton = FALSE AND InactiveButton = TRUE:
arRangeInfo["Complete"] = TRUE
Otherwise:
arRangeInfo["Complete"] = ""
endSwitch
TblTC.setGenFilter(arRangeInfo)
However, under Paradox 10, I always get a run-time error on the 'setGenFilter' method saying something like 'Filter expression is not valid' and then 'Can't convert True to a fldBool' and then 'Invalid Character "T"rue'.
I've tried various combinations of Logical(True), string(Logical(True)), 0, 1, string("\\0" (and many others) but nothing seems to work.
Any suggestions?
Graeme