| |
Membro registado 56 mensagems |
|
Publicado em maio, 11 2021 - 4:04 PM |
hi,
i need to change an image based on the value of a field, how can i do it in windev mobile? sorry I'm new.
i try this but not work MyImage is Image MyImage = dLoadImage("image.png") |
| |
| |
| | | |
|
| | |
| |
Publicado em maio, 11 2021 - 5:15 PM |
a simple MyImage = "Image.png" will work fine -IF- "image.png" is at the right place on the mobile (ie fCurrentDir)
It's much better to indicate the exact path where you expect to find the image file |
| |
| |
| | | |
|
| | |
| |
Membro registado 56 mensagems |
|
Publicado em maio, 11 2021 - 6:21 PM |
hi, i tried this solution but it doesn't load the image when i try it on the smartphone, is there anything I can do to include the images in the project? |
| |
| |
| | | |
|
| | |
| |
Publicado em maio, 11 2021 - 11:40 PM |
that is possible too...
You can either/or put them in a hidden image field and copy from there (MyImage=ImageField1) OR include them in the library (list of the project objects) and affect them directly by their name alone |
| |
| |
| | | |
|
| | |
| |
Membro registado 56 mensagems |
|
Publicado em maio, 12 2021 - 9:55 AM |
hi, sorry but i don't know how it includes them in the library .. sorry really new to windev |
| |
| |
| | | |
|
| | |
| |
Publicado em maio, 12 2021 - 3:21 PM |
then you can use the other method...
if you really want to do it that way it's in the project pane>project case> list of elements>list of projects elements>add |
| |
| |
| | | |
|
| | |
| |
Membro registado 56 mensagems |
|
Publicado em maio, 18 2021 - 12:44 PM |
thanks it works perfectly. Argus wrote:
then you can use the other method...
if you really want to do it that way it's in the project pane>project case> list of elements>list of projects elements>add
code: simmagine is Image simmagine= "confi@dpi4x.png" |
| |
| |
| | | |
|
| | |