🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.database.ado
1 messages
1 total messages Started by Russell Allen Thu, 01 Sep 2005 16:44
Setting properties on columns using Variants
#523
Author: Russell Allen
Date: Thu, 01 Sep 2005 16:44
19 lines
1434 bytes
Hi guys,

I'm wondering how I'd be able to set a property on a table column using variants?

My existing code is as follows:

  Variant Cols = NewTable.OlePropertyGet("Columns");
  Variant column = CreateOleObject("ADOX.Column");
  column.OlePropertySet("Name", "ID");
  column,OlePropertySet("Type", adSmallInt);
  Cols.OleProcedure("Append", column);

I need a line in there that does the equivelant of:
  column.OlePropertySet("Properties('autonumber')", true)

Any help much appreciated!  Thanks all,

Russ
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads