Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting column elasticity at run time 1

Status
Not open for further replies.

Repdetective

Programmer
May 10, 2004
4
GB
Hi

The problem I have is I dont want certain columns to appear at run-time depending on user-input. These columns can easily be hid by returning false in the format trigger. However, if I set the elasticity for all columns to 'Variable' in Prop Palette the columns that I dont want disappear nicely but the remaning columns all squash to the left side. So basically i want the elasticity of the 'wanted' clumns to remain fixed, but cannot determine this before run-time. I have not found anything in SRW package to acheive this. Any help will be greatly appreciated. Thanks.
 
So far, the best solution I have found to prevent the number fields from truncating due variable column length, is setting these fields as char instead (via CF) and then lpad the number accordingly to a pre-defined length.
 
Unfortunately, the above method only works if the font type is "Courier".
 
Look into the anchor tool. Fields hooked with anchors shift to replace the hidden ones not changing their widths.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top