[Openroad-users] (no subject)

Doug White black_belt101 at hotmail.com
Fri Jul 4 16:08:03 EST 2008


Hey All,

In our application we have multiple instances where the title of a table column spans over 2 lines,
eg.
Invoice
 Date

When using Copy Table function from the control button, the function carries over the return characters, so when the user pastes the data into excel the formatting of the header is ruined
eg.
Field 1 | Field 2 | Invoice
Date | Field 3 | Field 4

To get around this I wrote a ghost frame called _TableFieldCopy, to intercept calls to the core function and format the title text of the column header. (Code below)

However now OpenROAD crashes whenever I try to copy a table field containing any rows. Can anybody point out an easier way to do this? Maybe a fix I haven't thought of. Or some solution to why OpenROAD crashes?

Also the crash occurs in the copy table screen, when i hit the Ok button

OpenROAD version 4.1 Sp2

initialize(tblfld = TABLEFIELD;) =declaretblcopy = TABLEFIELD;Li_CurRow = INTEGER NOT NULL;col = COLUMNFIELD;enddeclare{    tblcopy = tblfld.duplicate();    FOR Li_CurRow = 1 TO tblfld.tablebody.Childfields.lastrow DO        col = COLUMNFIELD(tblcopy.tablebody.childfields[Li_CurRow]);        col.title = SQUEEZE(col.title);    ENDFOR;        CALLFRAME core!_TableFieldCopy(tblfld = tblcopy);        RETURN;}
Thanks 
Doug White

_________________________________________________________________
Overpaid or Underpaid? Check our comprehensive Salary Centre
http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fcontent%2Emycareer%2Ecom%2Eau%2Fsalary%2Dcentre%3Fs%5Fcid%3D595810&_t=766724125&_r=Hotmail_Email_Tagline_MyCareer_Oct07&_m=EXT
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.peerlessit.com/pipermail/openroad-users/attachments/20080704/be519da1/attachment.html 


More information about the Openroad-users mailing list