Mark Reed Posted May 20, 2011 Posted May 20, 2011 I have been digging through help and cannot find the answer to this - When using the Get(SystemNICAddress) calc, what happens if the machine has TWO network cards, or one hardwire and one wireless? Suppose both are active? or the machine is a laptop and sometimes uses the hardwire, and sometimes the wireless? IS there a way to specifiy WHICH nic to get, or somehow get ALL nic addresses?
bcooney Posted May 20, 2011 Posted May 20, 2011 If there are more than one, it gets both (return-delimited). I don't know about the order in which it gets the path. You could use GetValue ( ) and ValueCount ( ) to get the last value in the list.
Newbies ALT Posted June 1, 2011 Newbies Posted June 1, 2011 If you want the first address listed, try Left ( Get ( SystemNICAddress ) ; 17 ). If you want the second address listed, try Right ( Get ( SystemNICAddress ) ; 17 ). Or, if you want to check either NIC, you can do something like (PatternCount((Get(SystemNICAddress));YOURFIELD))=1 where "your field" is whatever you want to check the NIC against. Basically this is saying, if ANYTHING in the ( Get ( SystemNICAddress ) matches yourfield, then true/pass the test.
bcooney Posted June 1, 2011 Posted June 1, 2011 Won't Left ( ) fail if the value isn't 17 characters? Since it's a return-delimited list, simply use GetValue ( ValueCount ( Get ( SystemNICAddress) ) ) to grab the last value in the list.
Recommended Posts
This topic is 4981 days old. Please don't post here. Open a new topic instead.
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 accountSign in
Already have an account? Sign in here.
Sign In Now