MCA,

Noticing a peculiar behavior with KiXstrip..

Consider the following code:
code:
             IF $profile_remove = 'YES'
$index = 0
:loop4
$keyname = ENUMKEY($profilelocation, $index)
IF @error = 0
IF $keyname <> @userid OR $keyname <> 'Sales'
$rc = DELTREE($profilelocation+'\'+$keyname)
$index = $index + 1
GOTO Loop4
ENDIF
ENDIF
ENDIF

Can we do something like?
code:
             IF $profile_remove = 'YES'
$index = 0
:loop4
$keyname = ENUMKEY($profilelocation, $index)
IF @error = 0
IF $keyname <> @userid OR $keyname <> 'Sales'
$rc = DELTREE($profilelocation+'\'+$keyname)
$index = $index + 1
GOTO Loop4
ENDIF
ENDIF
ENDIF

What are your thoughts with this?

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's