If i change IP address through web browser, the function POST returns me string e.g. 192.168.1.1 How can i simple convert string to IP address and write to variables MyIP ?
Dim Theip(4)asstring*3 Dim Count asbyte Dim Thatip asstring*20
Thatip ="192.168.212.121"
Count=split(Thatip, Theip(1), ".")
This will put the 4 numbers of the IP into the first four Theip string elements the split command is very powerfull when you are working with a web server it saves searching strings for a character then moving to the position etc it quickly cuts the strings into smaller chunks.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum