Afrikaans
Akan
Albanian
Amharic
Arabic
Armenian
Azerbaijani
Basque
Belarusian
Bemba
Bengali
Bihari
Bosnian
Breton
Bulgarian
Cambodian
Catalan
Cebuano
Cherokee
Chichewa
Chinese (Simplified)
Chinese (Traditional)
Corsican
Croatian
Czech
Danish
Dutch
Esperanto
Estonian
Ewe
Faroese
Filipino
Finnish
French
Frisian
Ga
Galician
Georgian
German
Greek
Guarani
Gujarati
Haitian Creole
Hausa
Hawaiian
Hebrew
Hindi
Hmong
Hungarian
Icelandic
Igbo
Indonesian
Interlingua
Irish
Italian
Japanese
Javanese
Kannada
Kazakh
Kinyarwanda
Kirundi
Kongo
Korean
Krio (Sierra Leone)
Kurdish
Kurdish (Soranรฎ)
Kyrgyz
Laothian
Latin
Latvian
Lingala
Lithuanian
Lozi
Luganda
Luo
Luxembourgish
Macedonian
Malagasy
Malay
Malayalam
Maltese
Maori
Marathi
Mauritian Creole
Moldavian
Mongolian
Myanmar (Burmese)
Montenegrin
Nepali
Nigerian Pidgin
Northern Sotho
Norwegian
Norwegian (Nynorsk)
Occitan
Oriya
Oromo
Pashto
Persian
Polish
Portuguese (Brazil)
Portuguese (Portugal)
Punjabi
Quechua
Romanian
Romansh
Runyakitara
Russian
Samoan
Scots Gaelic
Serbian
Serbo-Croatian
Sesotho
Setswana
Seychellois Creole
Shona
Sindhi
Sinhalese
Slovak
Slovenian
Somali
Spanish
Spanish (Latin American)
Sundanese
Swahili
Swedish
Tajik
Tamil
Tatar
Telugu
Thai
Tigrinya
Tonga
Tshiluba
Tumbuka
Turkish
Turkmen
Twi
Uighur
Ukrainian
Urdu
Uzbek
Vietnamese
Welsh
Wolof
Xhosa
Yiddish
Yoruba
Zulu
In this lecture, I will talk about one question from Mr. Farrington How do I deny my static text when
a particular volume is written on the Ifield?
For example, when we get 20, I want to display low.
When it's 15, I want to display half full.
And when it's 100, I want to display full.
All should be gone with this one basic script.
Let's go to our chief of seven.
We open the global video here.
We have the eye of here in the eye of it.
We use this for the tank level.
And our look inside means, you see, when we use this value, we can display the number inside this
tank in millimeters.
So we want to display the static text.
We have a different text that defense of this I of value.
So we input the static text inside.
We see we know you both, for example.
This doesn't matter.
Let's configure a bit this.
This static tax, for example, like this, and we make that bold, let's say, on the 20.
So now we have only the static tax without the visual basic animations.
So we have the output value, the analog value, and we have the static things that should display for
us the low half or full.
So let's go to object properties.
We go to phones, text and in dynamic times we go to visual basic script action.
We open this inside here.
We can write the visual basics for this option.
So first we need to read the data from the analog value so we can create, for example, the dim value
dim, for example, a, we need to read data from this dark runtime tax.
We all.
I've got three good not.
That's common, this we need to copy this level, you know, you got to fund our names to 11 volume
we cross and we need to make this data.
So inside that e we have the data from this tank level volume.
Now we want to display their low status.
So we need to make that as so if A is lower than 20, then and we need to close this.
So if our volume is lower than 20, we need to display the low status.
So we had that text trigger we want to use.
So text trigger will be, you know, the next we can copy this and the next we have the hard of Hofstadter's.
So our text is hard, but we need to change our conditions for this so we will change to greater than
twenty and lower.
Than 50.
So if our value is greater than 20 and lower than 50, we have the of text and then last version is
that four.
So if our value inside this analog is greater than 50, we want to say static text in full.
So we get the text and A should be greater than 50.
And for example, it can be back for 50.
So we have the three version, the all the hard and the four.
Let's check the syntax, no error.
It's OK.
Let's save.
OK, now we can run this.
We know so now every time we change this value here, we change the static text display, so we have
that one, it's still low.
But if we put the 20, we have the hard.
At all go with his very basic script, so if we have the 50, we have the full.
So in this small visual, basic script action, we created the animation between the analog value and
the static text displaying this status in our windows, you see runtime.
Thank you.
And.
Try your self, the different moments of this script, you can, for example, try with the background
color if your condition is different, so you can change this and check how it's working inside your
application.
Good luck.
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.