dcsimg

Search:

Type: Posts; User: Muddy

Page 1 of 13 1 2 3 4

Search: Search took 2.70 seconds.

  1. Re: I want to share this with you all: FIND LOCATION LINE NUMBER WHERE APP CRASHES

    OK I looked it up .. it was codesmart I was thinking about. very much worth a look if you're still coding in VB6
    https://www.axtools.com/products-codesmart-vb6.php
  2. Re: I want to share this with you all: FIND LOCATION LINE NUMBER WHERE APP CRASHES

    ya know it has been a really long time. I could be remembering wrong, or confusing it with an auto indenter or something. Hell maybe I even had another addin back then . . .
  3. Re: I want to share this with you all: FIND LOCATION LINE NUMBER WHERE APP CRASHES

    I used to use MZTOOLS when I used VB6. Awesome addin. Lots to like about it, but one thing that stands out was the dotted lines that showing which if's belonged with which else's and end if's. If...
  4. Re: [RESOLVED] ERROR: The process cannot access the file . . .

    good thought sapator . . . I might give that a shot once I get back on my timeline. Thanks much for your suggestion
  5. Re: ERROR: The process cannot access the file . . .

    THAT DID IT!!!!!! Much thanks to you, sir!

    connectionString = "Data Source=(localdb)\v11.0;Integrated Security=true;Pooling=False;AttachDBFileName=C:\dbfile.mdf"

    EDIT TO NOTE: THIS WASNT...
  6. Re: ERROR: The process cannot access the file . . .

    Thanks jmcilhinney . . . Im going to try some more things based on your comments.
  7. Re: ERROR: The process cannot access the file . . .

    Thanks Zvoni
    1) I am looping through hundreds of mdf files inside a folder and changing a value in each of them. I am very new to vb.net db programming. Is there a better way to do this?
    2) No the...
  8. Thread: 13 years

    by Muddy
    Replies
    59
    Views
    2,574

    Re: 13 years

    Just drug back in with a db question after being away from here for awhile. Joined Feb 15th, 2001 . . . 18 years and change. Seems unreal. A surprisingly large number of mod user names I...
  9. [RESOLVED] ERROR: The process cannot access the file . . .

    Well it's been a while. It's awesome to see this place still thriving after all of these years.
    I've got an error I cannot figure out after much online searching. Ive tried all sorts of things but...
  10. Replies
    0
    Views
    865

    C++ COM ActiveX SQL VB6

    Need a full time programmer in the Houston area. Might consider a half time programmer with the right skills. This is for an application conversion from VB6 to C++. Must have intimate knowledge of...
  11. Replies
    0
    Views
    1,823

    C++ COM ActiveX SQL VB6

    Need a full time programmer in the Houston area. Might consider a half time programmer with the right skills. This is for an application conversion from VB6 to C++. Must have intimate knowledge of...
  12. Replies
    9
    Views
    792

    Re: sorting 2 dimantion array

    Yikes!! I forgot a critical loop, so it wont work as I originally posted in all cases, I dont think. Try this instead (untested):



    Sub specialSort(ByRef mArr() As Integer)
    Dim i As...
  13. Replies
    9
    Views
    792

    Re: sorting 2 dimantion array

    here's another alternative. I think it does what I think you asked for :)



    Sub specialSort(ByRef mArr() As Integer)
    Dim i As Integer
    Dim temp As Integer

    For i = 1 To...
  14. Thread: array position

    by Muddy
    Replies
    8
    Views
    667

    Re: array position

    not sure I understand the question. Once you load the arrays up with data, the data won't change unless you change it yourself (by sorting the array for example). If you loop through and find that...
  15. Re: Have a label caption become a random number

    label1.caption = Fix(Rnd() * 10)
  16. Thread: array position

    by Muddy
    Replies
    8
    Views
    667

    Re: array position

    max = 1
    For Counter = 2 To 5

    If clock(max) < clock(Counter) Then

    max = Counter

    End If

    Next
  17. Thread: array position

    by Muddy
    Replies
    8
    Views
    667

    Re: array position

    if it is more than a couple of pieces of info per card, I'd probably use a UDT:




    'IN A MODULE:
    Public Type tGraphicsCards
    Manufacturer As String
    Cost As Currency
    ClockSpeed As...
  18. Replies
    2
    Views
    384

    Re: Weird type mismath error

    it's too painful to read in this format ;)
    please:
    1) indent your code
    2) put it in code tags when posting
    3) specify which line the error occurs on
  19. Replies
    7
    Views
    7,349

    Re: Control licensing in Windows 7

    From: http://msdn.microsoft.com/en-us/vbasic/ee413549

    "Microsoft will support your existing Visual Basic 6 components and applications through the lifetime of Windows 7 client and 2008 R2 server."...
  20. Replies
    5
    Views
    921

    Re: Connect to Access Database

    Recordcount returns -1 for forwardonly cursors. Try specifying the cursor type:

    rs = New ADODB.Recordset, adOpenStatic

    also, sometimes you have to "jiggle" it to get the recordcount property...
  21. Replies
    3
    Views
    819

    Re: Change 1 line in 50MB textfile

    try the code below on a text file (C:\test.txt) with the following contents:

    linea
    line1
    my line to find
    line2
    line3
    line4
  22. Replies
    3
    Views
    819

    Re: Change 1 line in 50MB textfile

    If you can determine the exact byte position of the line, and the exact number of bytes of the line, maybe you could map a network drive and open the file for binary access and Put the new string in....
  23. Replies
    5
    Views
    1,115

    Re: [RESOLVED] string size

    Passing a string to/from a Windows API dll, for example, requires "allocated space" in the string variable. Ive seen this done by dimming the string as fixed length (dim strVAR as String*512) and...
  24. Replies
    1
    Views
    4,083

    Re: cant load msado.tlh

    Seems there must be an issue with my VS2010 which is odd since I just recently installed it. I have a side by side installation of VS2008 that I tried this in. It works with some issues which were...
  25. Replies
    4
    Views
    577

    Re: Creating a Big array

    you cant dim a public array inside the form code module. Youll have to insert a new code module and put it there. Im surprised youd didnt get a specific warning stating that when you tried to run...
  26. Re: format issue when writing txt file using open stat

    try this: put your header print outside the loop. then replace all those print statements with a single print with the database column data delimited by vbtab.

    edit: guess that isnt a header...
  27. Replies
    2
    Views
    524

    Re: [HELP] Align Text !

    assuming the text is all in a single string variable:



    Dim strText As String
    Dim a() As String
    Dim i As Integer
    strText = " Name: XXXX XXXX" & vbCrLf & " Age : 23" & vbCrLf...
  28. Replies
    1
    Views
    4,083

    [RESOLVED] cant load msado.tlh

    I cant seem to make this statement work in a header file (Visual Studio 2010):

    #import "msado15.dll"

    Ive also tried the full path to msado.dll. Ive tried to clean the solution and full...
  29. Replies
    2
    Views
    597

    Re: Display files from certain folder in vb6

    just realized after reading your other post that you are using the WMP control. Try this:



    Option Explicit
    Dim strFileName As String

    Private Sub Command1_Click()
    ...
  30. Replies
    4
    Views
    804

    Re: Read from .txt file on seperate lines ?

    Use a control array. Do this by adding index numbers in the property window for your button(s).

    Then:



    Dim a() As String

    Private Sub Command1_Click(Index As Integer)
    Text1.Text =...
  31. Replies
    4
    Views
    804

    Re: Read from .txt file on seperate lines ?

    read the whole file into an array and and display the text from the array element corresponding to the line number. Of course, load the array just once (form load event maybe) and not everytime user...
  32. Replies
    2
    Views
    597

    Re: Display files from certain folder in vb6

    Dim strFileName As String
    Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hWnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters...
  33. Replies
    34
    Views
    2,669

    Re: SSTab with multiple tables

    Drop an SSTab ( TABCTL32.OCX ) control on a form.
    Right click the SSTAB control - properties - set tabcount and tabsperrow to 4
    Left click Tab0 - put a grid (Grid1) in the tab container
    Left...
  34. Replies
    0
    Views
    731

    C++ course for other language programmers

    Can anyone recommend a good intensive C++ (or VC++) course that is geared toward people with other (non C) language programming experience (Basic and VB6)? I wouldnt want to spend any time on...
  35. Replies
    34
    Views
    2,669

    Re: SSTab with multiple tables

    Maybe you're confusing the use of SSTab control with the regular Tab control.

    The SSTab control has a container for each tab ... each container would have its own Textbox, grid, label, etc to...
  36. Re: Error with loop, being stuck in an infinite for times loop

    Sure, just get rid of the timer altogether and call the sub once (from the formLoad event, or a button click, or a menu option, etc). What's the intended purpose of using the timer, anyway?
  37. Replies
    8
    Views
    1,012

    Re: VB 3 program disks

    about $10 plus postage from YankeeRebel? :)
  38. Thread: Vb 6

    by Muddy
    Replies
    13
    Views
    1,002

    Re: Vb 6

    Select Case UCase(txtUserName.Text & "HSFC")
    Case "ADBHSFC", "CDEHSFC", "FGHHSFC", "XYZHSFC" ' etc but type upper case only
    ' ok, username acceptable
    Case Else
    ' display...
  39. Re: Error with loop, being stuck in an infinite for times loop

    just to clarify on your code i loaded into a new project:

    overall the sub with the loop is being called 155 times as expected.
    each call causes 4 Prints as expected.
    overall file there are 620...
  40. Thread: Vb 6

    by Muddy
    Replies
    13
    Views
    1,002

    Re: Vb 6

    try this


    Dim recognizedUsers As String
    recognizedUsers = "|ADB|user1|user2|user3|"
    If len(txtUsername.Text) > 1 and InStr(recognizedUsers, txtUsername.Text) > 0 Then
    'username is valid...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width