vb.net - phone type in computed property -
in following code sample property type [mainswitchboardphone] "phone". when make computed clinichospitaladdress property summary property entity phone number show in data entry screen (555) 555-5555 format rather merely string. i.e. 5555555555. there way this?
private sub clinichospitaladdress_compute(byref result string) ' set result desired field value result = [clinichospital] & " " & [streetaddress] & ", " & _ [city] & " " & [mainswitchboardphone]
try:
result = string.format("{0} {1}, {2} (###) ###-####" _ , [clinichospital] _ , [streetaddress] _ , [city] _ , convert.toint64([mainswitchboardphone]) _ )
edit: added convert.toint64
Comments
Post a Comment