Dear,

An idea to prevent misunderstanding the meaning of a value is using symbolic
names for them.
F.e.

- $_program_group_added_successfull=0
- $_program_item_added_successfull=0
- $_eventlog_backed_up_successfull=0
- $_eventlog_cleared_successfull=0
- $_file_closed_successfull=0
- $_subkey_deleted_successfull=0
- $_printer_connection_deleted_successfull=0
- $_program_group_deleted_successfull=0
- $_program_item_deleted_successfull=0
- $_subkey_deleted_successfull=0
- $_value_entry_deleted_successfull=0
- $_dir_successfull=0
- $_file_found=1 ; Exist
- $_file_not_found=0 ; Exist
- $_member_of_group=1 ; Ingroup
- $_no_member_of_group=0 ; Ingroup
- $_no_keystroke_in_keyboard_buffer=0
- $_subkey_found=1 ; KeyExist
- $_subkey_not_found=0 ; KeyExist
- $_hive_key_loaded_successfull=0
- $_subkey_loaded_successfull=0
- $_event_logged_successfull=0
- $_user_logged_off_successfull=0
- $_file_opened_successfull=0
- $_line_read_successfull=0
- $_profilestring_read_successfull=0
- $_subkey_type_found_successfull=0
- $_value_read_successfull=0
- $_output_redirected_successfull=0
- $_subkey_saved_successfull=0
- $_keystrokes_send_successfull=0
- $_message_sent_successfull=0
- $_display_state_changed_successfull=0
- $_default_printer_set_successfull=0
- $_attributes_set_successfull=0
- $_focus_set_successfull=0
- $_setsystemstate_action_successfull=0
- $_title_set_successfull=0
- $_wallpaper_set_successfull=0
- $_program_group_viewed_successfull=0
- $_computer_shutdown_successfull=0
- $_hive_key_unloaded_successfull=0
- $_line_write_successfull=0
- $_profilestring_written_successfull=0
- $_value_written_successfull=0

The functions Exist, Ingroup and KeyExist will return
a 1 when action is successfull.
An example:

code:

$_subkey_found=1 ; KeyExist
$_subkey_not_found=0 ; KeyExist
;
$key="HKCU\MCA"
IF (KeyExist($key) = $_subkey_found)
? $ikey+" found."
ELSE
? $ikey+" not found."
ENDIF


Such symbolic names make it easily to move your code from ExistKey
to KeyExist.

[/code]
greetings.

_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA