The next is a part of conseptual tests passed in revision 2.6a that fail in the last one
Attached a screen capture error catched in the code line below a fail comment
Best regards
Juan
Code: Select all
method TestReplace
private stext
STORE SqlConnect("MSSQLTEST") to _handle
LRESULT:= SqlExec(_handle , "select * from m02clie","m02clie")
IF LRESULT >0
DBGoTop()
stext:= ""
MALIAS:= ALIAS()
DO WHILE (!Eof())
FieldPutSelect(Alias(),"M02NOMBRE" , "CAMBIADO "+ LTrim(Str(RecNo())))
DbSkip()
ENDDO
// until here the test is passed!!!!
local pblock := {||
FieldPutAlias(Alias(),"m02domicil","domicil ")
FieldPutAlias(Alias(),"m02nombre","nombre ")
return 0
}
local pconditionFor:= {|| (Mod(RecNo(),2)=0) }
// FAIL!!! next line produce error, see the screen capture
if DbEval(pblock, pconditionFor )
stext:= "ok"
DbEval({|| stext:= stext + chr(13)+ m02domicil +"-" + m02nombre})
else
stext:= "er"
endif
endif