Use this behaviour to get the username of your viewer and let it be placed into a field.
property pTextComp, UserField
on beginsprite me
set name = pTextComp&&baUserName( )
put name into member UserField
end beginsprite me
on getPropertyDescriptionList me
p_list = [:]
addProp p_list, #pTextComp, [#format:#string,#default:"Computer name is:",#comment:"The line that is placed before the computer name"]
addProp p_list, #UserField, [#format:#member,#default:0,#comment:"Select the member field to put the username into"]
return p_list
end
Contact
MMI
36 South Court Sq
Suite 300
Newnan, GA 30263
USA