Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: Column widths in a TABLE  (Read 11480 times)
Tim B.
Posts: 67


« on: March 26, 2009, 05:10:29 pm »

The width of a column in a table is determined by its size in the .per, so it might be 100 chars wide, but 100 chars of data may only take up half that amount of room, leaving lots of empty space.  I can't seem to control this except for manually resizing the column headers.  It would be nice if the width of the column in the table didn't restrict the amount of data that could be shown, eg you could have an array of char(100) and a table column of 60 chars wide and the data wouldn't be truncated as it is in my example.

Is this possible already, have I missed something?

GDC 2.11.05


* table column.gif (36.19 KB, 1027x124 - viewed 1935 times.)
Sebastien F.
Four Js
Posts: 545


« Reply #1 on: March 26, 2009, 05:20:59 pm »

Tim,

You should try the SCROLL attribute:

https://4js.com/techdocs/genero/fgl/devel/DocRoot/User/FSFAttributes.html#FA_SCROLL

Seb
Tim B.
Posts: 67


« Reply #2 on: March 26, 2009, 05:28:55 pm »

Not sure why I didn't try that one.  I think I assumed it just did the same as in BDL, ie allow the input to SCROLL.  In Genero it seems to re-size the field too, which is perfect.

Thanks
Tim B.
Posts: 67


« Reply #3 on: March 26, 2009, 05:44:00 pm »

One small issue.  This only works with CHAR fields, but the same problem applies to any field, especially dates.  The field must be 'oversized' to accommodate the date, but the date only take up about 60% of the width.

Code
  1. [a         ]  --10 chars
  2.  
  3. a = mytab.datefld;
  4.  
produces something like this:-

|26-03-2009          |
Tim B.
Posts: 67


« Reply #4 on: March 26, 2009, 05:48:07 pm »

Ignore my last post.  I thought that was happening, but have just tried it again.... :)
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines