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

  • You may already know about some of the benefits of Bluemix, IBM's open platform for developing and deploying mobile and web applications. Check out this webcast that focuses on building an Android application using the MobileData service, with a walk-through of the real process and workflow used to build and link the MobileData service within your application. Join IBM's subject matter experts as they show you the way to build a base application that will jumpstart you into building your own more complex app …

  • A modern mobile IT strategy is no longer an option, it is an absolute business necessity. Today's most productive employees are not tied to a desk, an office, or a location. They are mobile. And your company's IT strategy has to be ready to support them with easy, reliable, 24/7 access to the business information they need, from anywhere in the world, across a broad range of communication devices. Here's how some of the nation's most progressive corporations are meeting the many needs of their mobile workers …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds