>What stops you?
Ah, debugging forever. I also noticed the same bug in his message: question not found (404).
>>i want to write a procedure that will recode this vfp code into sqlserver code :
>>
>>iif(val(z)=1,ctod(x),ctod(y)) && vfp code
>>
>>into :
>>
>>case when cast(z as int)=1 then cast(x as datetime) else cast(y as datetime) end as xxx