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

  • Live Event Date: October 29, 2014 @ 11:00 a.m. ET / 8:00 a.m. PT Are you interested in building a cognitive application using the power of IBM Watson? Need a platform that provides speed and ease for rapidly deploying this application? Join Chris Madison, Watson Solution Architect, as he walks through the process of building a Watson powered application on IBM Bluemix. Chris will talk about the new Watson Services just released on IBM bluemix, but more importantly he will do a step by step cognitive …

  • On-demand Event Event Date: October 23, 2014 Despite the current "virtualize everything" mentality, there are advantages to utilizing physical hardware for certain tasks. This is especially true for backups. In many cases, it is clearly in an organization's best interest to make use of physical, purpose-built backup appliances rather than relying on virtual backup software (VBA - Virtual Backup Appliances). Join us for this webcast to learn why physical appliances are preferable to virtual backup appliances, …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds