12.07.2015 Views

Excel Add-in Development in C/C++: Applications in ... - F9

Excel Add-in Development in C/C++: Applications in ... - F9

Excel Add-in Development in C/C++: Applications in ... - F9

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

18 <strong>Excel</strong> <strong>Add</strong>-<strong>in</strong> <strong>Development</strong> <strong>in</strong> C/<strong>C++</strong>Table 2.8 (cont<strong>in</strong>ued)Supplied argument<strong>Excel</strong> will attempt, if required, to convert to...Non-zero → TRUEStr<strong>in</strong>gNumberMust be any one of <strong>Excel</strong>’s known number formats<strong>in</strong>clud<strong>in</strong>g date, time, etc.BooleanMust be ‘true’ or ‘false’ (not case-sensitive).BooleanNumberTrue → 1False → 0(Conversion not always performed).Str<strong>in</strong>gTrue → “TRUE”False → “FALSE”S<strong>in</strong>gle cell reference1st step:Value of cell referred to.2nd step:Number → Integer, Str<strong>in</strong>g or BooleanStr<strong>in</strong>g → Number or BooleanBoolean → Number or Str<strong>in</strong>gMultiple cell referenceArray(Note: each element <strong>in</strong> the array has the same data typeas the correspond<strong>in</strong>g cell’s value).2.6.12 Operator evaluation precedenceTable 2.9 Operator evaluation precedenceOperators (operation)NotesName lookup and substitutionReference-to-value and type conversion() and worksheet functions Evaluated left to right%, unary –ˆ =4^50% evaluates to 2*/B<strong>in</strong>ary +−&B<strong>in</strong>ary =, , =, =4+2&1+5="66" evaluates to TRUEEvaluated left to right

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!