Click here to Skip to main content
15,902,840 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: problem in Dynamically adding objects of user control Pin
Dave Kreskowiak14-Jul-04 3:33
mveDave Kreskowiak14-Jul-04 3:33 
GeneralRe: problem in Dynamically adding objects of user control Pin
James Gohl14-Jul-04 8:33
James Gohl14-Jul-04 8:33 
GeneralRecognizing the MSHFlexGrid's Row on MouseMove Event Pin
Ravi S.V.14-Jul-04 0:13
Ravi S.V.14-Jul-04 0:13 
GeneralVisual Basic 6 Help in DLL Pin
afrodit13-Jul-04 20:49
afrodit13-Jul-04 20:49 
GeneralRe: Visual Basic 6 Help in DLL Pin
Ravi S.V.14-Jul-04 0:21
Ravi S.V.14-Jul-04 0:21 
GeneralInterface Question Pin
beowulfagate13-Jul-04 20:27
beowulfagate13-Jul-04 20:27 
GeneralRe: Interface Question Pin
Dave Kreskowiak14-Jul-04 2:46
mveDave Kreskowiak14-Jul-04 2:46 
Generalauto generating number Pin
GaryKoh13-Jul-04 19:47
GaryKoh13-Jul-04 19:47 
hello
i have this problem with auto generation number via using function
the coding below is converted from vb6 and it is working in vb6
Public Function autoorderno() As String
Dim orderno As String
    Dim ordering As New Class1
    Dim order As New ADODB.Recordset
        order.Open "SELECT * FROM orders", cn, adOpenDynamic, adLockOptimistic, adCmdText
            auto = "000000"
                Do While Not order.EOF
                        order.Find "orderno ='Ord" & auto & "'"
                    If Not order.EOF Then
                        auto = Format(Str(Val(Mid$(auto, 5) + 1)), "000000")
                    Else
                        autoorderno = "Ord" + auto
                            Exit Function
                    End If
                Loop
                    autoorderno = "Ord" + auto
            Set order = Nothing
End Function

but some how in vb.net it say "value cannot be generated"
may i know what is wrong with the coding
thank you in advance

Gary
GeneralRe: auto generating number Pin
Dave Kreskowiak14-Jul-04 2:36
mveDave Kreskowiak14-Jul-04 2:36 
GeneralRe: auto generating number Pin
GaryKoh14-Jul-04 19:59
GaryKoh14-Jul-04 19:59 
GeneralRe: auto generating number Pin
Dave Kreskowiak16-Jul-04 0:57
mveDave Kreskowiak16-Jul-04 0:57 
GeneralUpload Pin
Verolix13-Jul-04 15:18
Verolix13-Jul-04 15:18 
GeneralRe: Upload Pin
Dave Kreskowiak13-Jul-04 16:12
mveDave Kreskowiak13-Jul-04 16:12 
GeneralCE VB.Net Owner Drawn ListBox Pin
Chris Reiff13-Jul-04 14:23
Chris Reiff13-Jul-04 14:23 
GeneralRe: CE VB.Net Owner Drawn ListBox Pin
Dave Kreskowiak13-Jul-04 16:15
mveDave Kreskowiak13-Jul-04 16:15 
GeneralA complicated string... Pin
Brad Fackrell13-Jul-04 10:11
Brad Fackrell13-Jul-04 10:11 
GeneralRe: A complicated string... Pin
Dave Kreskowiak13-Jul-04 12:19
mveDave Kreskowiak13-Jul-04 12:19 
GeneralRe: A complicated string... Pin
Brad Fackrell13-Jul-04 12:42
Brad Fackrell13-Jul-04 12:42 
Generalvb code Pin
nazerudeen13-Jul-04 5:56
nazerudeen13-Jul-04 5:56 
GeneralRe: vb code Pin
Dave Kreskowiak13-Jul-04 12:13
mveDave Kreskowiak13-Jul-04 12:13 
GeneralRe: vb code Pin
jonathan1515-Jul-04 5:29
jonathan1515-Jul-04 5:29 
QuestionHow to connect Microsoft Access Report in vb.net Pin
Member 122179713-Jul-04 2:58
Member 122179713-Jul-04 2:58 
AnswerRe: How to connect Microsoft Access Report in vb.net Pin
martyconnelly14-Jul-04 15:31
martyconnelly14-Jul-04 15:31 
GeneralIntegrating Outlook Pin
Het210912-Jul-04 23:32
Het210912-Jul-04 23:32 
GeneralSave as WebPages using WebBrowser control Pin
Member 122179712-Jul-04 21:43
Member 122179712-Jul-04 21:43 

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.