Click here to Skip to main content
15,919,931 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: newbie VB question Pin
Fernando Soto20-May-05 6:58
Fernando Soto20-May-05 6:58 
GeneralConverting from C# to VB.net Pin
macca2420-May-05 3:36
macca2420-May-05 3:36 
GeneralRe: Converting from C# to VB.net Pin
toxcct20-May-05 4:25
toxcct20-May-05 4:25 
GeneralRe: Converting from C# to VB.net Pin
macca2420-May-05 5:04
macca2420-May-05 5:04 
GeneralRe: Converting from C# to VB.net Pin
Kevin McFarlane20-May-05 13:06
Kevin McFarlane20-May-05 13:06 
GeneralRe: Converting from C# to VB.net Pin
Dave Doknjas20-May-05 14:53
Dave Doknjas20-May-05 14:53 
GeneralRe: Converting from C# to VB.net Pin
Kevin McFarlane21-May-05 1:54
Kevin McFarlane21-May-05 1:54 
GeneralRe: Converting from C# to VB.net Pin
Dave Doknjas20-May-05 14:46
Dave Doknjas20-May-05 14:46 
Our Instant VB C# to VB.NET converter (www.instantvb.com) produces the following:

Private Sub test()
Dim arrReturn As Object() = Nothing
Dim SP_NAME As String = "GetIDProc"
Dim RetID As String
Dim parameters As SqlParameter() = { SqlAccessor.SqlParameterBuilder("@RetOrderID", SqlDbType.VarChar, 10, ParameterDirection.Output)}
Dim iRow As Integer = SqlAccessor.ExecuteNonQuery(connectionString, SqlAccessor.SqlCommandBuilder(New SqlCommand(SP_NAME), parameters), CommandType.StoredProcedure, arrReturn)
RetID = CStr(IIf(arrReturn(0).Equals(System.DBNull.Value), 0, arrReturn(0)))

If iRow > 0 Then
Dim myFormat As String
Dim d As DateTime = New DateTime()
OrderNum.Text = d.Year.ToString() & "/" & RetID
Else
OrderNum.Text = "Cannot Get Details"
End If
End Sub



David Anton
Tangible Software Solutions
www.tangiblesoftwaresolutions.com
Home of the Instant C# VB.NET to C# Converter and the Instant VB C# to VB.NET Converter
GeneralRe: Converting from C# to VB.net Pin
macca2422-May-05 22:38
macca2422-May-05 22:38 
GeneralRe: Converting from C# to VB.net Pin
Dave Doknjas23-May-05 6:00
Dave Doknjas23-May-05 6:00 
GeneralCreating Setup in VB.NET Pin
meetaqadir19-May-05 23:56
meetaqadir19-May-05 23:56 
GeneralRe: Creating Setup in VB.NET Pin
rudy.net21-May-05 20:41
rudy.net21-May-05 20:41 
GeneralAccessing word CustomDocumentProperties from VB.NET Pin
raph-it19-May-05 23:37
raph-it19-May-05 23:37 
Generalproblem in progamming microsoft word Pin
IvanChang19-May-05 22:04
IvanChang19-May-05 22:04 
GeneralRe: problem in progamming microsoft word Pin
niansah20-May-05 4:21
niansah20-May-05 4:21 
GeneralRe: problem in progamming microsoft word Pin
IvanChang20-May-05 14:28
IvanChang20-May-05 14:28 
GeneralRe: problem in progamming microsoft word Pin
IvanChang20-May-05 17:35
IvanChang20-May-05 17:35 
Generalproblem with data reports in vb Pin
Member 197900819-May-05 21:03
Member 197900819-May-05 21:03 
GeneralGiving Input to printer Pin
mahendren8419-May-05 19:12
mahendren8419-May-05 19:12 
GeneralRe: Giving Input to printer Pin
toxcct20-May-05 3:19
toxcct20-May-05 3:19 
GeneralDrill Down functionality Pin
manojmmj19-May-05 19:05
manojmmj19-May-05 19:05 
GeneralRe: Drill Down functionality Pin
Christian Graus19-May-05 19:21
protectorChristian Graus19-May-05 19:21 
GeneralDatagrid Sort Pin
genius12319-May-05 18:56
genius12319-May-05 18:56 
GeneralRe: Datagrid Sort Pin
Jim Matthews20-May-05 2:57
Jim Matthews20-May-05 2:57 
GeneralNeed help with the listbox Pin
dw192819-May-05 18:53
dw192819-May-05 18:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.