Subject Re: [IBO] TIB_Protocol Discrepancy
Author Geoff Worboys
> enum TIB_Protocol { cpLocal, cpNetBEUI, cpTCP_IP, cpNovell };
> (cpLocal being 0, so cpTCP_IP is 2)
> But in the Protocols property on the TIB_Connection component,
> the values are ordered: cpLocal, cpNetBEUI, cpNovell, cpTCP_IP
> So... are the underlying values correct for both, but one of
> them has a messed-up order, or is there a problem?

I think you misunderstand what you are seeing.

Take a typical VCL enumeration TFormBorderStyle which is defined
as:
TFormBorderStyle = (bsNone, bsSingle, bsSizeable, bsDialog,
bsToolWindow, bsSizeToolWin);

Yet the presentation in the Object Inspector is
bsDialog
bsNone
bsSingle
<etc>

That is; The Object Inspector is presenting the enumeration
in alphabetic order. It has nothing to do with the numeric
equivalents of the values.


--
Geoff Worboys
Telesis Computing