Purpose: Set the width of a column.
Returns: none
|
Argument |
Type |
Required |
Purpose |
|
1 |
Integer |
Yes |
Column Number. See column numbering. |
|
2 |
Variant |
Yes |
Width of column. |
With objMilestones
'Start Milestones
'Set the width of column 1 to 1.5 inches
. SetColumnWidth 1, 1.5
' loop through 7 times to add 7 tasks
For nCounter = 1 To 7
strTemp = "This is Task Row " + CStr(nCounter)
'Add the column text
.PutCell nCounter, 1, strTemp
strTemp = CStr(nCounter) + "/1/2000"
'Add a single symbol to each task
.AddSymbol nCounter, strTemp, nCounter
'Force the task to redraw so it will display
.Refreshtask nCounter
Next nCounter
'Leave the schedule open
End With
To effectively program with this interface, it's important to learn all about Milestones Professional. Learn about Milestones.
Milestones Professional 2023 Automation Methods and Properties. © Copyright 2000-2023, KIDASA Software, Inc. All rights reserved.