table col width

Discussion in 'Questions (Windows Mobile)' started by tvrman, Jun 16, 2007.

  1. tvrman

    tvrman Member Licensed User

    hi,
    Simple peace of script result still that the col width is the same?
    what went wrong?

    i cannot change the width whatever i tried.


    Table1.AddCol(cString,"Item",30,False)
    Table1.AddCol(cString,"Description",90,False)
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Can you attach a screen shot of the result?
     
  3. tvrman

    tvrman Member Licensed User

    Yes
     

    Attached Files:

  4. Erel

    Erel Administrator Staff Member Licensed User

    Please try to run the attached code.
     

    Attached Files:

    • a.sbp
      File size:
      455 bytes
      Views:
      28
  5. tvrman

    tvrman Member Licensed User

    Very strange Erel,

    The sample you provide works oke,

    I'll post the source that i used.
     

    Attached Files:

    • V1.sbp
      File size:
      2.9 KB
      Views:
      27
  6. Erel

    Erel Administrator Staff Member Licensed User

    The XML file includes the columns declaration (type, size and unique).
    I recommend you to use CSV files instead as they are smaller, faster and apparently there is an issue with XML in complex tables.
     
  7. RandomCoder

    RandomCoder Well-Known Member Licensed User

    The problem is with the XML file that you are loading, it is setting the width of the columns.

    Regards,
    RandomCoder

    EDIT: Sorry, beat to the solution, Erel is far to quick for us mere mortals ;-)
     
  8. tvrman

    tvrman Member Licensed User

    Yes thanks guys,

    still strange because if there is no XML exists it should be saved an empty one with width data on it. (i supose the width is one of them)

    i will rewrite it to CSV files.

    Thanks
     
  9. tvrman

    tvrman Member Licensed User

    After change to CSV is works :sign0060:

    thanks
     
Loading...