wish this can help: add a calculated field named 'sex',and set its type 'string' oncalculate: if table1.fieldbyname('yourfild')=1 then table1sex.value:='男' eles if table1.fieldbyname('yourfild')=1 then table1sex.value:='女';
sorry, if table1.fieldbyname('yourfild')=1 then table1sex.value:='男' eles if table1.fieldbyname('yourfild')=-1 then table1sex.value:='女';
if table1.fieldbyname('yourfild')=1 then table1sex.value:='男' else table1sex.value:='女';
先建一个新的field如sex if table.fieldbyename('性别').value=1 then table.fieldbyname('sex').value:='男' else .......='-1' then.....='女';
add a calculated field named 'sex',and set its type 'string'
oncalculate:
if table1.fieldbyname('yourfild')=1 then
table1sex.value:='男'
eles if table1.fieldbyname('yourfild')=1 then
table1sex.value:='女';
if table1.fieldbyname('yourfild')=1 then
table1sex.value:='男'
eles if table1.fieldbyname('yourfild')=-1 then
table1sex.value:='女';
table1sex.value:='男' else table1sex.value:='女';
if table.fieldbyename('性别').value=1 then
table.fieldbyname('sex').value:='男' else
.......='-1' then.....='女';