Author Topic: Change width of columns in a table  (Read 2219 times)

0 Members and 1 Guest are viewing this topic.

antistar

  • Guest
Change width of columns in a table
« on: February 22, 2012, 08:59:02 AM »
I have several tables with four columns of equal width value.
I'm looking for a routine that when selecting a table to change the width of the columns by applying a different value for each.
Does anyone know if this is possible?

Thanks in advance.
« Last Edit: February 22, 2012, 09:39:36 AM by antistar »

Lee Mac

  • Seagull
  • Posts: 12914
  • London, England
Re: Change width of columns in a table
« Reply #1 on: February 22, 2012, 09:55:03 AM »
Investigate the SetColumnWidth method

antistar

  • Guest
Re: Change width of columns in a table
« Reply #2 on: February 22, 2012, 02:21:18 PM »
Investigate the SetColumnWidth method

Lee, thanks for your reply. I'm searching the forums.

As I understand it "SetColumnWidth" is used in routines to parameterize table columns that have yet to be inserted. I need to change columns from tables that are already inserted.

Lee Mac

  • Seagull
  • Posts: 12914
  • London, England
Re: Change width of columns in a table
« Reply #3 on: February 22, 2012, 02:38:35 PM »
Investigate the SetColumnWidth method

Lee, thanks for your reply. I'm searching the forums.

I would suggest that you read about the method in the VLIDE Help Documentation.  :-)

As I understand it "SetColumnWidth" is used in routines to parameterize table columns that have yet to be inserted. I need to change columns from tables that are already inserted.

From the VLIDE Help:

Quote from: VLIDE Help
SetColumnWidth Method

Sets the column width for the column at the specified column index in the table.

This method applies to a VLA Table Object, hence the Table must already exist.