Re: Set HTMLText and Get Effective HTMLText

2022-05-18 Thread Bob Sneidar via use-livecode
Haha! I forget sometimes that everything is just some bit of memory. I keep thinking for example that if I store values I want in a script local that it will somehow be much faster than a custom property of an object, but of course that can only be true if the code for accessing custom propertie

Re: Set HTMLText and Get Effective HTMLText

2022-05-18 Thread Rick Harrison via use-livecode
> > set the HTMLText of VarHTMLText to URL VarURL > > Use: > > set the HTMLText of the templateField to URL VarURL > > And instead of: > > get the effective HTMLText of VarHTMLText2 > > Use: > > get the effective HTMLText of the templateField > > __

Re: Set HTMLText and Get Effective HTMLText

2022-05-18 Thread Paul Dupuis via use-livecode
Instead of: set the HTMLText of VarHTMLText to URL VarURL Use: set the HTMLText of the templateField to URL VarURL And instead of: get the effective HTMLText of VarHTMLText2 Use: get the effective HTMLText of the templateField ___ use-livecode

Re: Set HTMLText and Get Effective HTMLText

2022-05-18 Thread Rick Harrison via use-livecode
Hi Bob, That might be what I need, but I’ll have to look at the resulting code to see if that will work. Thanks, Rick > On May 18, 2022, at 12:43 PM, Bob Sneidar via use-livecode > wrote: > > put URL VarURL into VarHTMLText ___ use-livecode mailin

Re: Set HTMLText and Get Effective HTMLText

2022-05-18 Thread Mark Waddingham via use-livecode
On 2022-05-18 17:43, Rick Harrison via use-livecode wrote: I wish it worked with variables though because execution would be faster. If variables could manipulate styled text (aka htmlText) then they wouldn't be any faster than fields ;) Warmest Regards, Mark. -- Mark Waddingham ~ m...@liv

Re: Set HTMLText and Get Effective HTMLText

2022-05-18 Thread Bob Sneidar via use-livecode
Can't you just put URL VarURL into VarHTMLText ? Bob S > On May 18, 2022, at 09:40 , Rick Harrison via use-livecode > wrote: > > Thanks! It’s a bummer though, > because variables are much faster. > > Rick > >> On May 18, 2022, at 12:28 PM, Tore Nilsen via use-livecode >> wrote: >> >>

Re: Set HTMLText and Get Effective HTMLText

2022-05-18 Thread Rick Harrison via use-livecode
Hi Klaus, Thanks for getting back to me on this. That explains the problem. I wish it worked with variables though because execution would be faster. Oh well, at least it will do for now until we have the LC 10 compiler which will make it all faster! Rick > On May 18, 2022, at 12:29 PM, K

Re: Set HTMLText and Get Effective HTMLText

2022-05-18 Thread Rick Harrison via use-livecode
Thanks! It’s a bummer though, because variables are much faster. Rick > On May 18, 2022, at 12:28 PM, Tore Nilsen via use-livecode > wrote: > > I would think it is because the htmlText is a property of a field. It is one > of the properties that it inherited by any field. The variable does

Re: Set HTMLText and Get Effective HTMLText

2022-05-18 Thread Bob Sneidar via use-livecode
If I may add something to this, the reason why the syntax did not throw an error at compile time is because the compiler does not know whether or not VarHTMLText is a variable that contains the value "field HTMLTextField1" or the name of any object to be precise. If it did then it would be valid

Re: Set HTMLText and Get Effective HTMLText

2022-05-18 Thread Klaus major-k via use-livecode
x is accepted fine, but it throws the following error at execution > time.) > Chunk: error in object expression > > This works: > get the effective HTMLText of field "HTMLTextField1" of this card > > This doesn’t work: > get the effective HTMLText of VarHTMLText2 > (T

Re: Set HTMLText and Get Effective HTMLText

2022-05-18 Thread Tore Nilsen via use-livecode
error in object expression > > > > This works: > > get the effective HTMLText of field "HTMLTextField1" of this card > > > This doesn’t work: > > get the effective HTMLText of VarHTMLText2 > > (The syntax is accepted fine, but it throws the

Set HTMLText and Get Effective HTMLText

2022-05-18 Thread Rick Harrison via use-livecode
: get the effective HTMLText of field "HTMLTextField1" of this card This doesn’t work: get the effective HTMLText of VarHTMLText2 (The syntax is accepted fine, but it throws the following error at execution time.) Chunk: error in object expression Why? Thanks for your insig

Re: Effective htmltext

2013-03-14 Thread J. Landman Gay
On 3/14/13 4:53 AM, Monte Goulding wrote: Er... I can't see htmlText in the list there nor can I see the working screenRect which also accepts the effective keyword. I did report it, against the "effective" entry. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive So

Re: Effective htmltext

2013-03-14 Thread Monte Goulding
ways the problem isn't so much with the docs but actually > stumbling across the gems that are hidden in them. > > On Thu, Mar 14, 2013 at 6:48 AM, J. Landman Gay > wrote: >> >> On 3/13/13 5:36 PM, Monte Goulding wrote: >>> >>> >>> On 1

Re: Effective htmltext

2013-03-14 Thread Kay C Lan
3 5:36 PM, Monte Goulding wrote: >> >> >> On 14/03/2013, at 9:29 AM, "J. Landman Gay" wrote: >> >>> get the effective htmlText of fld 1 >> >> >> Nice... for finding it you get the privilege of writing the docs bug report &g

Re: Effective htmltext

2013-03-13 Thread J. Landman Gay
On 3/13/13 5:36 PM, Monte Goulding wrote: On 14/03/2013, at 9:29 AM, "J. Landman Gay" wrote: get the effective htmlText of fld 1 Nice... for finding it you get the privilege of writing the docs bug report ;-) I knew there'd be a catch. :) -- Jacqueline Landman Gay

Re: Effective htmltext

2013-03-13 Thread Monte Goulding
On 14/03/2013, at 9:29 AM, "J. Landman Gay" wrote: > get the effective htmlText of fld 1 Nice... for finding it you get the privilege of writing the docs bug report ;-) -- Monte Goulding M E R Goulding - software development services mergExt - There's an

Effective htmltext

2013-03-13 Thread J. Landman Gay
I didn't know you could do this: get the effective htmlText of fld 1 You get everything, all the field settings and inherited fonts and sizes and colors and all. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software |