Author Topic: Length of a string  (Read 6290 times)

0 Members and 1 Guest are viewing this topic.

velasquez

  • Newt
  • Posts: 195
Re: Length of a string
« Reply #15 on: August 14, 2014, 06:36:13 PM »
If those "fixed size" and "variable size" refer to column width, you have a logical problem: the header over the last "variable" column is indicated as "fixed", so with all the other child columns also "fixed" the last column cannot be variable.

Hi I understood what you said.
Please you have a basic example of a table that looks like this to show me?
Thanks

velasquez

  • Newt
  • Posts: 195
Re: Length of a string
« Reply #16 on: August 16, 2014, 04:10:58 PM »
Or something along the lines of:

Code - Auto/Visual Lisp: [Select]
  1. (   (lambda ( box ) (- (caadr box) (caar box)))
  2.     (textbox
  3.         (list
  4.             (cons 01 str)
  5.             (cons 40 hgt)
  6.             (cons 07 sty)
  7.         )
  8.     )
  9. )

Hi Lee,
Your tip helped me a lot again,.
thanks.

You're welcome  :-)

Regarding the table - my LM:addtable function from my Polyline Information program may help you.

Lee

Hi Lee

Your Information Polyline function does a great job.
I'm trying to include a second title line.
Equal to "ttl - [str] [Optional] Table title"
But I can not make it work.
Can you help me with this also.

velasquez

  • Newt
  • Posts: 195
Re: Length of a string
« Reply #17 on: August 16, 2014, 07:19:42 PM »
Hi Lee
I'm working with a function LM: AddTable:
I could create a second line of title then worked around.
After (vla-AddTable ...
I know the code below to put all the columns of the second lnha on a single line.
This path is correct?

Code: [Select]
  (vla-setsubselection obj 1 0 1 7)
  (vla-getsubselection obj '1 '0 '1 '7)
  (vla-mergecells obj 1 1 0 7)
  (vla-clearsubselection obj)

;;;ESCREVE O SUBTITULO
  (vla-settext obj 1 0 "SECOND TITLE")

Thanks

Lee Mac

  • Seagull
  • Posts: 12912
  • London, England
Re: Length of a string
« Reply #18 on: August 17, 2014, 07:37:43 AM »
There is no need for the get/set/clearsubselection methods - only the mergecells method is required.

velasquez

  • Newt
  • Posts: 195
Re: Length of a string
« Reply #19 on: August 18, 2014, 06:32:31 AM »
There is no need for the get/set/clearsubselection methods - only the mergecells method is required.

Thank you Lee
It worked.

Not something like Row Style exist?

Lee Mac

  • Seagull
  • Posts: 12912
  • London, England
Re: Length of a string
« Reply #20 on: August 18, 2014, 06:49:24 PM »
There is no need for the get/set/clearsubselection methods - only the mergecells method is required.

Thank you Lee
It worked.

Not something like Row Style exist?

I don't think so, no  :-(

velasquez

  • Newt
  • Posts: 195
Re: Length of a string
« Reply #21 on: August 18, 2014, 09:12:00 PM »
There is no need for the get/set/clearsubselection methods - only the mergecells method is required.

Thank you Lee
It worked.

Not something like Row Style exist?

I don't think so, no  :-(

OK Lee,
Thanks