Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have a macro that makes an initial selection in my application that is like this:
ActiveDocument.GetField("Group").Select ("MDF")
I need to select "MDF" group and either "PBO" group, but I don't know how to do this.
Bah, that'll teach me to extrapolate from SelectValues, for which that parameter tells it to be in toggle mode. Actually READING the API guide now, it looks like you want to use ToggleSelect. So like this:
set field = ActiveDocument.getField("Group")
field.Select("MDF") 'wipes out current selections and then selects MDF
field.ToggleSelect("PBO") 'toggles the selection of PBO, which turns it on without touching MDF
set field = ActiveDocument.getField("Group")
field.Select("MDF") 'wipes out current selections and then selects MDF
field.Select("PBO"),true 'leaves current selections and selects PBO
It Did not work. PBO only appears, as "true" clause is not being recognized
Bah, that'll teach me to extrapolate from SelectValues, for which that parameter tells it to be in toggle mode. Actually READING the API guide now, it looks like you want to use ToggleSelect. So like this:
set field = ActiveDocument.getField("Group")
field.Select("MDF") 'wipes out current selections and then selects MDF
field.ToggleSelect("PBO") 'toggles the selection of PBO, which turns it on without touching MDF