B4J Question [SOLVED] [BANanoVuetifyAD3] how set value to VFileInput

Lello1964

Well-Known Member
Licensed User
Longtime User
I'm start using BANanoVuetifyAD3,

have two questions ?

- how set value to VFileInput

- how set focus to a specific object
 

Star-Dust

Expert
Licensed User
Longtime User
I'm start using BANanoVuetifyAD3,

have two questions ?

- how set value to VFileInput

- how set focus to a specific object
????
 
Upvote 0

Mashiane

Expert
Licensed User
Longtime User
Noted, just to add, cannot set a value to a VFileInput because its used to select a file to process from the PC, a read only approach.

On Setting the value of the VImg...

At Design Time

You can set a value (src) to the VImg via the abstract designer, if you put a VImg on a layout, you will find, "Src URL" property with ./assets/bva31.png. Change this to be the path you want.

At Run Time

To change the image at runtime, you can use

B4X:
 VImg.SetImage(page, "http://mydomain.com/myimage.jpeg")

At Run Time - Option 2

In the "Src Binding" property you specify the "variable" that the image should be bound to at runtime, e.g. "myimage"

To change the image at runtime, you can use

B4X:
 page.SetData("myimage", "http://mydomain.com/myimage.jpeg")

This has an effect of changing all the images "src" bound to that variable.
 
Upvote 0
Top