Ksp reference Manual



Download 0,99 Mb.
Pdf ko'rish
bet123/187
Sana10.02.2022
Hajmi0,99 Mb.
#441108
1   ...   119   120   121   122   123   124   125   126   ...   187
Bog'liq
KONTAKT 610 KSP Reference Manual

15.7. save_array_str()
save_array_str(,
)
Saves an array to an external file, i.e. an .nka file, using the specified absolute
path

The array to be saved
The absolute path of the .nka file to be
saved
Remarks
• The behaviour is similar to 
save_array()
, but instead of manually choosing a save location,
you can directly save the file to the specified location.
• If the file does not exist but the folder does, a new .nka file will be created.
Load/Save Commands
138
KSP Reference Manual


• Can be used in 
persistence_changed
, UI and pgs callbacks.
Example
(see next page)
on init
declare $count
declare @path
{set save path here, for example
@path := "/Users//Desktop/Arrays/"}
declare ui_button $Save
declare ui_table %table[8] (2,2,100)
make_persistent(%table)
declare %preset[8]
declare $save_arr_id
$save_arr_id := -1
declare ui_text_edit @preset_name
make_persistent(@preset_name)
set_control_par_str(get_ui_id(@preset_name),$CONTROL_PAR_TEXT,"empty")
set_control_par(get_ui_id(@preset_name),$CONTROL_PAR_FONT_TYPE,25)
set_control_par(get_ui_id(@preset_name),$CONTROL_PAR_POS_X,73 + 3*92)
set_control_par(get_ui_id(@preset_name),$CONTROL_PAR_POS_Y,2)
declare ui_label $pattern_lbl(1,1)
set_text($pattern_lbl,"")
move_control_px($pattern_lbl,66 + 3*92,2)
end on
on ui_control (%table)
$count := 0
while($count < 8)
%preset[$count] := %table[$count]
inc($count)
end while
end on
on ui_control ($Save)
$save_arr_id := save_array_str(%preset,@path & @preset_name & ".nka")
end on

Download 0,99 Mb.

Do'stlaringiz bilan baham:
1   ...   119   120   121   122   123   124   125   126   ...   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