Ksp reference Manual



Download 0,99 Mb.
Pdf ko'rish
bet19/187
Sana10.02.2022
Hajmi0,99 Mb.
#441108
1   ...   15   16   17   18   19   20   21   22   ...   187
Bog'liq
KONTAKT 610 KSP Reference Manual

3.13. read_persistent_var()
read_persistent_var()
Instantly reloads the value of a variable that was saved via the 
make_persistent()
command
Remarks
• This command can only be used within the init callback.
• The state of the variable is saved not only with the patch (or multi or host chunk), but also when
a script is saved as a KONTAKT preset (.nkp file).
• When replacing script code by copy and replacing the text, the values of persistent variables is
also retained.
• When working on more complex scripts, you might want to "flush" the variables by resetting the
script. You can do this by applying an empty script in the respective slot.
• You can also use the 
on persistence
callback for retrieving the values of persistent varia-
bles.
Variables
21
KSP Reference Manual


Examples
on init
declare ui_label $label (1,1)
declare ui_button $button
set_text($button,"$a := 10000")
declare $a
make_persistent($a)
{read_persistent_var($a)}
set_text ($label,$a)
end on
on ui_control ($button)
$a := 10000
set_text($label,$a)
end on
After applying this script, click on the button and then save and close the NKI. After reloading it,
the label will display 0 because the value of $a is initialized at the very end of the init callback. Now
remove the {} around read_persistent_var and apply the script again.
See Also
make_persistent()
on persistence_changed

Download 0,99 Mb.

Do'stlaringiz bilan baham:
1   ...   15   16   17   18   19   20   21   22   ...   187




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish