Search found 1 match

by claudepio
Wed Feb 02, 2022 2:32 pm
Forum: Sample Code
Topic: Using IPAddress object
Replies: 1
Views: 5202

Using IPAddress object

Hi,

I am trying to copy set an IPAddress object with the IP from another IPAddress object.
I am using the following code which is throwing an error on compile;

IPAddress ip1;
IPAddress ip2(192.168.1.1);

ip1 = ip2;

How can I copy the IP from ip2 into ip1?

Appreciate any help.
Cheers,
Claude