Author Topic: Reading and Saving Attribute values. ala DBX - VL Version ..  (Read 1772 times)

0 Members and 1 Guest are viewing this topic.

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Reading and Saving Attribute values. ala DBX..
... The Lispy Version.

http://www.theswamp.org/index.php?topic=29992.msg355647#msg355647

Thought some may find it usefull or interesting.



« Last Edit: August 23, 2009, 10:16:43 PM by Kerry Brown »
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

Joe Burke

  • Guest
Re: Reading and Saving Attribute values. ala DBX - VL Version ..
« Reply #1 on: August 24, 2009, 08:28:45 AM »
Hi Kerry,

Just curious, are you content with the fact this (vla-get-textstring Att) will include formatting codes as opposed to how the text appears on screen?

Given a standard text type attribute you might get this: "text %%Ustring 224%%U". Given a multiline attribute in 2008 or later, the formatting codes can be as complex as those which apply to an mtext object in 2008.

Lee Mac

  • Seagull
  • Posts: 12915
  • London, England

Joe Burke

  • Guest
Re: Reading and Saving Attribute values. ala DBX - VL Version ..
« Reply #3 on: August 24, 2009, 08:54:47 AM »
I thought you might mention that Joe...    ;-)

Lee,

Similar issues are on my mind while I try to update my SwapText routine to include support for swapping fields and multiline attributes.

Lee Mac

  • Seagull
  • Posts: 12915
  • London, England
Re: Reading and Saving Attribute values. ala DBX - VL Version ..
« Reply #4 on: August 24, 2009, 09:08:01 AM »
I can imagine... 1 step forward and 3 steps back it seems  :|

Since the advent of mAttribs I've had to bulk up my routines substantially, and as for "unformatting" fields - that is a task in itself....    :-(