shorts and longs



it was my understanding that a c type short was equal to a vb type integer, and a c type
long was equal to a vb type long.

according to the tif file specs, the compression tag (259) stores it's value (either 1,
2, 3, 4, 5, 6, or 32773) as a short type (a vb integer) but as you can see, one of the
valid values of the compression type is 32773, which is out of the range of a vb integer.
so, when i Dim m_Compression as Integer and the return value is 32773, i get an overflow
obviously. i can change it to Dim m_Compression as Long, but will that cause any trouble
i'm not aware of?

lance


.



Relevant Pages

  • Re: Workbooks.OpenText method, FieldInfo parameter
    ... a little more understanding happening here, ... Dim ColumnsDesired ... "Dave Peterson" wrote: ... FieldInfo parameter to specify which columns to ignore and which should be ...
    (microsoft.public.excel)
  • Problems with Updating Data
    ... create Parameters for Updating the Data with Dataadapter. ... Here is my code for better understanding (Please read my Remarks i made here ... dim ODBC_Connection as New OdbcConnection ... dim ODBC_Adapter as New OdbcDataAdapter("SELECT SMSVersNr, NatelNr, ...
    (microsoft.public.dotnet.framework.adonet)
  • Problem with worksheet functions and errors
    ... some searching on here but for my own understanding can someone explain why ... Dim Name As Variant ...
    (microsoft.public.excel.programming)
  • Re: Detecting SQL Server on a LAN
    ... Hi Mike, ... I would like to confirm my understanding of your issue. ... The ListAvailableSQLServers ... Dim nl As SQLDMO.NameList ...
    (microsoft.public.data.ado)
  • RE: Re : Excel Range of Values Amidst Characteristic Transitions
    ... Dim Curr As Range, Prev ... If RowArray1 Is Nothing Then ...
    (microsoft.public.excel)