SetObjectAttribute - a mistake in webhelp? - Forum

Forum Navigation
You need to log in to create posts and topics.

SetObjectAttribute - a mistake in webhelp?

Hi,

I think I found a mistake?

in the online Help File

https://webhelp.visualneo.com/Objects.html

SetObjectAttribute is described with an example...

But the example is:

Example: SetObjectStyle "Image1" "src" "./img/imagefile.jpg"

I think it should not say SetObjectStyle there, because "src" is not even listed as a property of Style.

That particular action concerns ObjectAttribute by the way, not ObjectStyle.

Anyway, I tried to copy and paste the above example but it does not work...

How can I change or reset the image source-file in a container?

Thanks,

.

 

 

 

@fkapnist

How can I change or reset the image source-file in a container?

This worked for me ...

SetObjectAttribute "myLogo" "src" "c:/gk/crab.png"

... where myLogo is an Image object (not a Container).

How can I change or reset the image source-file in a container?

Did you mean Image object or a Container object with some custom html ?

 

fkapnist has reacted to this post.
fkapnist
Quote from Gaev on January 25, 2023, 1:03 am

@fkapnist

How can I change or reset the image source-file in a container?

This worked for me ...

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
SetObjectAttribute "myLogo" "src" "c:/gk/crab.png"
SetObjectAttribute "myLogo" "src" "c:/gk/crab.png"
SetObjectAttribute "myLogo" "src" "c:/gk/crab.png"

... where myLogo is an Image object (not a Container).

How can I change or reset the image source-file in a container?

Did you mean Image object or a Container object with some custom html ?

 

Yes, this works for an image object:

SetObjectAttribute "Image1" "src" [myImage]

SetObjectStyle is a mistake in the help files.

Thanks,

.

@fkapnist thank you, I will fix the mistake as soon as possible.

fkapnist has reacted to this post.
fkapnist
Open chat
1
Do you need more info?
Hi, do you have any doubt?