Jump to content
Sign in to follow this  
bobbintb

help with relatively simple and asinine issue

Recommended Posts

bobbintb

i know there is an easier why to do this but its been a long day at work and my brain is fried...

$clean=_ArraySearch($new_test,"Node Type","","","",1)
 if $clean<>-1 Then
     _ArrayDelete($new_test,$clean)
     EndIf

 $clean=_ArraySearch($new_test,"IP Routing Enabled","","","",1)
 if $clean<>-1 Then
     _ArrayDelete($new_test,$clean)
     EndIf

 $clean=_ArraySearch($new_test,"WINS Proxy Enabled","","","",1)
 if $clean<>-1 Then
     _ArrayDelete($new_test,$clean)
     EndIf

 $clean=_ArraySearch($new_test,"Media State","","","",1)
 if $clean<>-1 Then
     _ArrayDelete($new_test,$clean)
     EndIf

 $clean=_ArraySearch($new_test,"DHCP Enabled","","","",1)
 if $clean<>-1 Then
     _ArrayDelete($new_test,$clean)
     EndIf

 $clean=_ArraySearch($new_test,"Autoconfiguration Enabled","","","",1)
 if $clean<>-1 Then
     _ArrayDelete($new_test,$clean)
     EndIf

 $clean=_ArraySearch($new_test,"Link-local IPv6 Address","","","",1)
 if $clean<>-1 Then
     _ArrayDelete($new_test,$clean)
     EndIf

 $clean=_ArraySearch($new_test,"DHCPv6 IAID","","","",1)
 if $clean<>-1 Then
     _ArrayDelete($new_test,$clean)
     EndIf

 $clean=_ArraySearch($new_test,"DHCPv6 Client DUID","","","",1)
 if $clean<>-1 Then
     _ArrayDelete($new_test,$clean)
     EndIf

 $clean=_ArraySearch($new_test,"NetBIOS over Tcpip","","","",1)
 if $clean<>-1 Then
     _ArrayDelete($new_test,$clean)
     EndIf

Share this post


Link to post
Share on other sites
Zedna

MyArraySearch("Node Type")
MyArraySearch("IP Routing Enabled")
MyArraySearch("WINS Proxy Enabled")
MyArraySearch("Media State")
MyArraySearch("DHCP Enabled")
MyArraySearch("Autoconfiguration Enabled")
MyArraySearch("Link-local IPv6 Address")
MyArraySearch("DHCPv6 IAID")
MyArraySearch("DHCPv6 Client DUID")
MyArraySearch("NetBIOS over Tcpip")

Func MyArraySearch($name)
    $clean = _ArraySearch($new_test, $name, "", "", "", 1)
    If $clean <> -1 Then _ArrayDelete($new_test, $clean)
EndFunc

Share this post


Link to post
Share on other sites
bobbintb

MyArraySearch("Node Type")
MyArraySearch("IP Routing Enabled")
MyArraySearch("WINS Proxy Enabled")
MyArraySearch("Media State")
MyArraySearch("DHCP Enabled")
MyArraySearch("Autoconfiguration Enabled")
MyArraySearch("Link-local IPv6 Address")
MyArraySearch("DHCPv6 IAID")
MyArraySearch("DHCPv6 Client DUID")
MyArraySearch("NetBIOS over Tcpip")

Func MyArraySearch($name)
    $clean = _ArraySearch($new_test, $name, "", "", "", 1)
    If $clean <> -1 Then _ArrayDelete($new_test, $clean)
EndFunc

ugh. thanks. been a long day.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.