Usefull addons to CDaoTableDef

This currently only includes one function.

Allough is not complete I hope it shows how to set some of the field parameters.

Also look at MS Knowledge base article Q152688
SetAllowZeroLength( LPCTSTR lpszField, BOOL bSet )

lpszField is the field name to be modified,

bSet = TRUE for allowing zero length, FALSE for no zero length

How to Use:

CGeneralTableDef def( &MyDatabase );        // MyDatabase is a previously opened CDaoDatabase object

def.Open( _T("A Table") );

def.SetAllowZeroLength( _T("AStringField"), TRUE );    // set allow zero length

Download source zip- 1KB



Comments

  • There are no comments yet. Be the first to comment!

Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • IBM Worklight is a mobile application development platform that lets you extend your business to mobile devices. It is designed to provide an open, comprehensive platform to build, run and manage HTML5, hybrid and native mobile apps.

  • Best-in-Class organizations execute on a strategy that supports the multi-channel nature of customer requests. These leading organizations do not just open up their service infrastructures to accommodate new channels, but also empower their teams to deliver an effective and consistent experience regardless of the channel selected by the customer. This document will highlight the key business capabilities that support a Best-in-Class customer engagement strategy.

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds