1. I´ve tried the FP Evaluate() func with some expressions, and indeed FP allows e.g. ".and." and "and". :woohoo:
Code: Select all
a = .t.
b = .f.
? evaluate ( "a .and. b" ) && .f.
? evaluate ( "a and b" ) && .f.
?
? evaluate ( "a .or. b" ) && .t.
? evaluate ( "a or b" ) && .t.
Code: Select all
? Evaluate( "a and b" )
? Eval( MCompile("a and b") )
NOTE: The for condition uses "and" and not ".and."
Code: Select all
set talk off
set safety off
clear
cpfad = "D:test"
cDBf = "small.dbf"
cCdx = "small2.cdx"
use ( cPfad + cDbf )
index on upper (last) for upper (last) = "O" and age >12 tag order1 of ( cPfad + cCdx )
Code: Select all
INDEX ON Upper(LAST) TAG ORDER1 TO (cPath + cCDX ) FOR Upper (LAST)= "O" AND AGE > 12
Code: Select all
DbSetOrderCondition( "Upper(LAST)="O"ANDAGE>12" , {||Upper(LAST)="O"ANDAGE>12} , , , , , , , , , , .F. , , , )
regards
Karl-Heinz