Author Topic: [Help] Converting a string with special characters into a series of lists  (Read 7495 times)

0 Members and 1 Guest are viewing this topic.

nivuahc

  • Guest
Re: [Help] Converting a string with special characters into a series of lists
« Reply #15 on: January 06, 2010, 01:29:36 PM »
The only issue I have, now, is trying to get that damned Title row to not show up... I mean, I tried setting vla-put-titlesuppressed to every value I can think of and it doesn't seem to make a bit of difference.  :ugly:

Any ideas?  :?


Code: [Select]
(vlax-invoke table 'DeleteRows 0 1)   :oops:

nivuahc

  • Guest
Re: [Help] Converting a string with special characters into a series of lists
« Reply #16 on: January 06, 2010, 02:30:28 PM »
So that begs the question: What the heck is TitleSuppressed good for?

T.Willey

  • Needs a day job
  • Posts: 5247
Re: [Help] Converting a string with special characters into a series of lists
« Reply #17 on: January 06, 2010, 02:43:29 PM »
Do you suppress the header row also?  Or do you want to keep that?  When I have done tables in code, I coded it like (vla-put-TitleSuppressed Tbl :vlax-false) and that worked for me.
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.

nivuahc

  • Guest
Re: [Help] Converting a string with special characters into a series of lists
« Reply #18 on: January 06, 2010, 02:58:02 PM »
Do you suppress the header row also?  Or do you want to keep that?  When I have done tables in code, I coded it like (vla-put-TitleSuppressed Tbl :vlax-false) and that worked for me.

I've tried

(vlax-put Tbl 'TitleSuppressed :vlax-true)
(vlax-put Tbl 'TitleSuppressed -1)

but never

(vla-put-TitleSuppressed Tbl :vlax-true)

I'll have to give that a whirl (though it shouldn't make a difference, should it?).

Lee Mac

  • Seagull
  • Posts: 12502
  • London, England
Re: [Help] Converting a string with special characters into a series of lists
« Reply #19 on: January 06, 2010, 02:59:26 PM »
(though it shouldn't make a difference, should it?).

You'd be surprised, I remember Tim helping me figure out something with a bunch of Viewports, and it all came down to something like that...

nivuahc

  • Guest
Re: [Help] Converting a string with special characters into a series of lists
« Reply #20 on: January 06, 2010, 03:05:30 PM »
(though it shouldn't make a difference, should it?).

You'd be surprised, I remember Tim helping me figure out something with a bunch of Viewports, and it all came down to something like that...

Yeah, Tim can be pretty amazing. But that method didn't do it either.  :|

T.Willey

  • Needs a day job
  • Posts: 5247
Re: [Help] Converting a string with special characters into a series of lists
« Reply #21 on: January 06, 2010, 03:48:40 PM »
Here is how I create mine
Code: [Select]
(setq Tbl (vlax-invoke CurSpace 'AddTable StPt (length StrList) MaxCol TxtHt 1.0))
(if (= ShowTitle "Yes")
    (vla-put-TitleSuppressed Tbl :vlax-false)
    (vla-put-TitleSuppressed Tbl :vlax-true)
)
(if (= ShowHeader "Yes")
    (vla-put-HeaderSuppressed Tbl :vlax-false)
    (vla-put-HeaderSuppressed Tbl :vlax-true)
)
(vla-SetAlignment Tbl acTitleRow 5)
(vla-SetAlignment Tbl acHeaderRow 5)
(vla-SetAlignment Tbl acDataRow TxtAli)
(vla-put-RegenerateTableSuppressed Tbl :vlax-true)

After is when I start filling in all the information.  This has worked before without error.  It's been tested on '04 and '06 for sure.  What version are you using?

sidenote:  You guys trying to make me blush? ... Thanks for the kind words...
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.