Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to convert below VB code to VFP code
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
How to convert below VB code to VFP code
Miscellaneous
Thread ID:
01067585
Message ID:
01067585
Views:
58
Hi All,
i need to convert below VB codes to VFP code

TIA
Private Sub Command1_Click()
Dim strURL As String, strFormData As String
 

strURL = "http://85.111.0.121/pwSmsToMany"
strFormData = "<MainmsgBody>"
strFormData = strFormData & "<UserName>" & Text1.Text & "</UserName><PassWord>" & Text2.Text & "</PassWord><Mesgbody>" & Text3.Text
strFormData = strFormData & "</Mesgbody><Numbers>" & Text4.Text & "</Numbers><Type>1</Type><Originator></Originator><SDate></SDate><EDate></EDate></MainmsgBody>"
Inet1.Execute strURL, "POST", strFormData

End Sub



Private Sub Inet1_StateChanged(ByVal State As Integer)
  Dim vtData As Variant ' Data variable.
  
   Select Case State
    
    Case icResponseCompleted
    vtData = Inet1.GetChunk(4072, icString)
    MsgBox (vtData)
   '    Label1.Caption = vtData
    
  End Select
 
End Sub
Next
Reply
Map
View

Click here to load this message in the networking platform