Deletes a section variable
BOOL DeleteValue( LPCSTR lpcszKey )
Returns no zero success 0 otherwise
EX1
//run example code in Storage::SetSection before run this code to check the result. void Storage_DeleteValue_ex1() { Page pg = Project.Pages(); if ( pg ) { string strStorage = "Test"; string strSection = "Params"; storage st; st = pg.GetStorage(strStorage); if ( st ) { Tree trParam; if ( st.GetSection(strSection, trParam) ) { out_tree(trParam); //before delete a section variable st.DeleteValue("Params.AA.TITLE"); if ( st.GetSection(strSection, trParam) ) out_tree(trParam); //after delete a sectoin variable } } } }
Storage::SetSection, Storage::GetSection
origin.h