how do you determine which compound one is more ionic than another?

For compound AB, for example, look up the electronegativity for A and the EN for B and subtract one from the other. The greater the difference, the more ionic character.