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
Hi Paul,
Thanks for this. I’ll keep this in mind for the future.
I found that Bob’s simple suggestion of:
put URL VarURL into VarHTMLText
to work the best for me.
Thanks again!
Rick
> On May 18, 2022, at 1:38 PM, Paul Dupuis via use-livecode
> wrote:
>
> Instead of:
>
> set the
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
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
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 ~
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:
>>
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,
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
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
Hi Rick,
> Am 18.05.2022 um 18:23 schrieb Rick Harrison via use-livecode
> :
>
> This works:
> set the HTMLText of field "HTMLTextField1" of this card to URL VarURL
>
> This doesn’t work:
> set the HTMLText of VarHTMLText to URL VarURL
> (The syntax is accepted fine, but it throws the
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 not have this
property.
Best regards
Tore Nilsen
> 18. mai 2022 kl. 18:23 skrev Rick Harrison via use-livecode
> :
>
> This works:
>
> set the
This works:
set the HTMLText of field "HTMLTextField1" of this card to URL VarURL
This doesn’t work:
set the HTMLText of VarHTMLText to URL VarURL
(The syntax is accepted fine, but it throws the following error at execution
time.)
Chunk: error in object expression
This works:
get the
12 matches
Mail list logo