Dlog-Store user pref pulldown by index

From Vectorlab
Jump to: navigation, search


Procedure to store the last used pulldown menu choice by index in the file "SavedSettingsUser.xml". The preferences can be then read using the routine "GetSavedSetting" or using the subroutine D_LoadUserPrefPull. By Orso B. Schmid


{ Orso B. Schmid ************************************************ }
{ stores last used pull choice from SavedSettingsUser/XML }
PROCEDURE D_StoreUserPrefPull(pull_ID: LONGINT; XMLcategory, XMLelem: STRING);
	VAR
		temp_s : STRING;
		temp_i : INTEGER;
	BEGIN
		GetSelChoice(pull_ID, 0, temp_i, temp_s);
		SetSavedSetting(XMLcategory, XMLelem, Concat(temp_i));
	END;