AleksejTokarev

Junior Member | Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору Zloy_Gelud Sdrawstwujte! U menja wasch kod ne ho4et rabotat' Код: function DeleteValue(sPathINI, sSearchData) tSNames = INIFile.GetSectionNames(sPathINI); if (tSNames) then tVNames = INIFile.GetValueNames(sPathINI, tSNames[1]); if (tVNames) then for n, sVName in tVNames do sData = INIFile.GetValue(sPathINI, tSNames[1], sVName); if (sData == sSearchData) then INIFile.DeleteValue(sPathINI, tSNames[1], sVName); break; end end end end end result = Input.GetText("Input1"); DeleteValue("AutoPlay\\Docs\\INI.txt", result); | INIFile Код: [sektion] 1=2 3=4 5=6 a=b 7=5=4 b=4=%=6 | Gde ja sdelal oschibku? I 4to sna4it bukwa "n" w washem kode, i moshno ee kaknibud samenit', tak kak u menja est' peremennaja "n" ja bojus 4to odno drugomu meshat' budet! |