Is this an efficient subr?

BillZ

Usenet Archive
Joined
Jul 9, 2003
Messages
1,001
Reaction score
0
R14 Autolisp:

Can someone look at this sube and tell me if there's a better way to handle this string? I want to incorporate it into a program that uses the layer command to unthaw layers and the layer command can only handle 202 characters at a time.

Thanks

Bill
 
OH my EYES........BOLD TEXT in notepad. :)

I might try converting the str to a list then do a foreach in the list. Just my idea the PROs should be here in a few.

Also is Unthaw the opposite of Unfreeze.  <g>

 

Murph

 

"BillZ" <> wrote:

R14 Autolisp:

Can someone look at this sube and tell me if there's a better way to handle this string? I want to incorporate it into a program that uses the layer command to unthaw layers and the layer command can only handle 202 characters at a time.

Thanks

Bill
 
Thanks Murph, >> BOLD TEXT in notepad <<<< ??? Don't know what you meant. I just use regular Verdana 10pt in notepad. I converted this string "from" a list so I could feed it to the layer command inside a toolbar. I just finished the program and it seems to work great! When the string gets too long, then I have to break it into several calls to (command "layer" "t" "string" "") in the toolbar. Just thought I'd check to see if anyone had a more compact way of breaking up the string.
Bill
 
When I opened it my puter showed it as a BOLD text too early in the morning for that .But the way you are breaking the string out looks simple & short. I can't think of any other way, and no one else has replied so you must be doing it right.

 

Murph

 

"BillZ" <> wrote:

Thanks Murph, >> BOLD TEXT in notepad <<<< ??? Don't know what you meant. I just use regular Verdana 10pt in notepad. I converted this string "from" a list so I could feed it to the layer command inside a toolbar. I just finished the program and it seems to work great! When the string gets too long, then I have to break it into several calls to (command "layer" "t" "string" "") in the toolbar. Just thought I'd check to see if anyone had a more compact way of breaking up the string.
Bill
 
>> no one else has replied so you must be doing it right <<<

That's a good rule to remember.

Hmmm... :)

Bill
 
It looks to me like this is as good as any other approach. It certainly works fast enough.

 

"BillZ" <> wrote:

>> no one else has replied so you must be doing it right <<<

That's a good rule to remember.

Hmmm... :)

Bill
 

Latest threads

Back
Top