Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi
I want to Edit the "AlwaysOneSelected" property of ListBox through Macro
How can I do this?
Regards
Avadhoot
Although this property will be set in the properties from a listbox it is a property from a field and you can't in another listbox from this field more as one value select if these property set on true - see here an example from the APIGuide.qvw.
set flddescs = ActiveDocument.GetFieldDescriptions
for i = 0 to flddescs.Count - 1
fdesc = flddescs(i)
if fdesc.AlwaysOneSelected then
msgbox(fdesc.Name & " is in always-one-selected-mode")
else
msgbox(fdesc.Name & " is not in always-one-selected-mode")
end if
next
- Marcus
Be aware of that this macro will not work if you use Ajax as client.
Just tried it..