Of course. What this does is grab the first portion of the string which ends at the first space. That's what Split is doing. So you check that and it finds "3top" so then we know that we'll need to change Image3.Top so we do that using the second portion of the string, which is the Image3.Top value from the sender. Just to illustrate the Split function, if you have the following data:
Then you do this:Code:str = "This is a string."
So now the s() array looks like this:Code:Dim s() As String 'this creates a dynamic array, which simply means a group of variables that can change at runtime s = Split(str, " ") 'now the data is split up into different variables, using the space character as the split point
Hope this helps.Code:s(0) = "This" s(1) = "is" s(2) = "a" s(3) = "string."
Edit: The way I use Split in my winsock example above is just a shortcut version of it. Instead of putting it in the s() array I am using it directly, so I write Split(somevar, " ") and add the number of which piece I want in parentheses on the end: Split(somevar, " ")(0) or Split(somevar, " ")(1) etc.




Reply With Quote