The first method putting the year as a constant returns the census summary, but the second method with a variable yields a null picenpi=fhNewItemPtr()
picen=fhNewItemPtr()
pi:MoveToRecordById('INDI',8)
x=1891
picen:MoveTo(pi,'~.CENS[year=1891]')
print(fhGetDisplayText(picen))
picen:MoveTo(pi,'~.CENS[year=x]')
print(fhGetDisplayText(picen))
Is this by design?
David
(still using v6.2)