How to get the length of a field?

Tech-Archive recommends: Speed Up your PC by fixing your registry



Hello all:
I create a class CRs derive from CRecordSet through ODBC,
and my table is created by access,and I want to know these fields'
length,because I want to know their length and then display on class
CListView,and these fileds' type have char and float,look:
{
CRs Rs;
Rs.Open();
int i=Rs.GetODBCFieldCount();
CODBCFieldInfo strField1,strField2;
Rs.GetODBCFieldInfo((int)0,strField1);
Rs.GetODBCFieldInfo((int)1,strField2);
}
I want to know how to know the field's type and how long?
thanks.


.



Relevant Pages

  • Re: How to get the length of a field?
    ... Read the doc for the CODBCFieldInfo. ... I create a class CRs derive from CRecordSet through ODBC, ... int i=Rs.GetODBCFieldCount; ...
    (microsoft.public.vc.mfc)
  • Re: Ignore SQL Server 2000 store proc errors and still get results?
    ... ODBC instead of SqlClient for this case. ... catch (Exception ex) ... >> DECLARE @Rows int ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: CDatabase CRecordset - How to get the number of rows?
    ... > CRecordset rs; ... Consider the impact of moving the database to a host on the ... network. ... int rowcount = vtval.m_lVal; ...
    (microsoft.public.vc.mfc)
  • Re: IIS 6 logging to Oracle Database
    ... > names being sent by IIS are not exactly as listed by Microsoft. ... > is sending the column identifier in quotes, Oracle is treating it as ... serverip varchar, processingtime int, bytesrecvd int, ... >> Try to enable ODBC logging and see if security or any permission problem ...
    (microsoft.public.inetserver.iis)
  • Re: Probleme mit Identity im Primärschüssel
    ... > ich habe eine SQL Datenbank die per ODBC das Backend einer Access ... > Datensätze hat. ... Der Primärschlüssel AbgrenzungsID ist ein int bei dem ...
    (microsoft.public.de.access.clientserver)