You are on page 1of 1

Option Explicit

Dim dirs() As String


Dim dirCnt As Integer
Private Sub con_CloudConnected()
con.ProcListDir "PLD1", False
End Sub

Private Sub con_CloudDataBuffered(ByVal bytesTotal As Long)


Dim strBuf As String
strBuf = con.CloudGetData
Select Case con.ProcID
Case "PLD1":
dirCnt = dirCnt + 1
ReDim Preserve dirs(dirCnt)
If dirCnt > 0 Then
Load imgIcon(dirCnt)
Load lblIcon(dirCnt)
lblIcon(dirCnt).Left = lblIcon(dirCnt - 1).Left +
lblIcon(dirCnt).Width + 100
imgIcon(dirCnt).Left = lblIcon(dirCnt).Left + 100
End If
lblIcon(dirCnt).Caption = strBuf
imgIcon(dirCnt).Visible = True
lblIcon(dirCnt).Visible = True
End Select
End Sub

Private Sub Form_Load()


con.InitializeSystem 1024, App.Path
con.CloudIP = "192.168.1.175"
con.CloudPort = "6007"
con.CloudConnect
dirCnt = -1
End Sub

You might also like