D
Dmitriy Shurin
Guest
I have a button field which has to update a string field in a form. The
string field updates, but the value can be seen only after i reenter the
form. it is very inconvenient, because i can't see the result
immediately. this is the code i have so far
;;;Creation of "Select" button for Vin(+)
VinPosBut=hiCreateButton(
?name 'VinPosBut
?buttonText "Select"
?callback "VinPosStr->value=objSelect()"
)
;;;Creation of Vin(+) input string field
VinPosStr=hiCreateStringField(
?name 'VinPosStr
?prompt "Vin(+)"
?editable t
)
;;;Get a net
procedure(objSelect()
let((temp)
geDeselectAll()
geSingleSelectPoint()
temp=car(geGetSelSet())
when((temp->objType=="line")|| (temp->objType=="label")
temp=strcat("/" temp->net->name)
);end of when
geDeselectAll()
temp
);end of let
);of procedure
is there anything i do wrong?
--
Posted via Mailgate.ORG Server - http://www.Mailgate.ORG
string field updates, but the value can be seen only after i reenter the
form. it is very inconvenient, because i can't see the result
immediately. this is the code i have so far
;;;Creation of "Select" button for Vin(+)
VinPosBut=hiCreateButton(
?name 'VinPosBut
?buttonText "Select"
?callback "VinPosStr->value=objSelect()"
)
;;;Creation of Vin(+) input string field
VinPosStr=hiCreateStringField(
?name 'VinPosStr
?prompt "Vin(+)"
?editable t
)
;;;Get a net
procedure(objSelect()
let((temp)
geDeselectAll()
geSingleSelectPoint()
temp=car(geGetSelSet())
when((temp->objType=="line")|| (temp->objType=="label")
temp=strcat("/" temp->net->name)
);end of when
geDeselectAll()
temp
);end of let
);of procedure
is there anything i do wrong?
--
Posted via Mailgate.ORG Server - http://www.Mailgate.ORG