Learn how to build an E-Commerce site with Angular 5, a JavaScript framework used by developers to build web, desktop, and mobile applications.
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
' Initialize string
Dim strData As String
Dim strReturn As String
Dim objSendPmt As SendPmt.clsSendPmt
objSendPmt = CreateObject("SendPmt.clsSendPmt")
strData = Replace(txtInput.Text, vbCrLf, Chr(10))
strReturn = objSendPmt.SendPayment(strData, "test")
End Sub
Do more with
protected void Button1_Click(object sender, System.EventArgs e)
{
// Initialize string
string strData = null;
string strReturn = null;
SendPmt.clsSendPmt objSendPmt = default(SendPmt.clsSendPmt);
objSendPmt = Interaction.CreateObject("SendPmt.clsSendPmt");
strData = Strings.Replace(txtInput.Text, Constants.vbCrLf, Strings.Chr(10));
strReturn = objSendPmt.SendPayment(strData, "test");
}
// using System.Runtime.InteropServices.Automation;
protected void Button1_Click(object sender, System.EventArgs e)
{
// Initialize string
string strData = null;
string strReturn = null;
var objSendPmt = (SendPmt.clsSendPmt)Activator.CreateInstance(Type.GetTypeFromProgID("SendPmt.clsSendPmt"));
// dynamic objSendPmt = Activator.CreateInstance(Type.GetTypeFromProgID("SendPmt.clsSendPmt"));
strData = Strings.Replace(txtInput.Text, "\r\n", "\n");
strReturn = objSendPmt.SendPayment(strData, "test");
}
protected void // ERROR: Handles clauses are not supported in C#
Button1_Click(object sender, System.EventArgs e)
{
// Initialize string
string strData = null;
string strReturn = null;
SendPmt.clsSendPmt objSendPmt = default(SendPmt.clsSendPmt);
objSendPmt = Interaction.CreateObject("SendPmt.clsSendPmt");
strData = Strings.Replace(txtInput.Text, Constants.vbCrLf, Strings.Chr(10));
strReturn = objSendPmt.SendPayment(strData, "test");
}
//=======================================================
//Service provided by Telerik (www.telerik.com)
//Conversion powered by NRefactory.
//Twitter: @telerik, @toddanglin
//Facebook: facebook.com/telerik
//=======================================================
Premium Content
You need an Expert Office subscription to comment.Start Free Trial