Search:

Type: Posts; User: Phill.W

Page 1 of 13 1 2 3 4

Search: Search took 0.06 seconds.

  1. Replies
    8
    Views
    340

    Re: Create a group of objects at rutime ?

    The "VB" way to do this is a Control Array.

    Create one TextBox in the designer.
    Set it's Index property to Zero.
    Set it's Visible Property to False.

    All the usual events are available on...
  2. Re: [vb6] Obtain the value of MyVar, from the string "MyVar"

    Whilst an interesting academic exercise, I fear this could result in a terribly fragile application.
    It is perfectly possible to create table columns with names that are invalid as VB variable...
  3. Replies
    97
    Views
    4,987

    Re: Why did Microsoft abandon ,killed VB6?

    A poor choice of example, I would suggest.

    Many, many Users who have been using Office for many years before 2007 were utterly appalled when Office 2007 landed with "The Ribbon".
    Power Users,...
  4. Replies
    97
    Views
    4,987

    Re: Why did Microsoft abandon ,killed VB6?

    That wasn't it at all.
    Upgrading from VB4 to VB5 was no big deal.
    Upgrading from VB5 to VB6 was one extra line in the Project file, which you could remove and instantly go back to working in...
  5. Re: I'm getting mad wit this overflow...

    The safest standpoint would be to assume that every Programming Language is inconsistent with every other Programming Language!
    Even trying to write C++ using all 'C'-style constructs, or C# using...
  6. Re: I'm getting mad wit this overflow...

    An interesting comparison, but ...



    C++ != VB


    They are completely different beasts, built for different purposes ... although, admittedly, the "lines" between which should be used for...
  7. Replies
    6
    Views
    489

    Re: how to clear class by self in vb6?

    Here's a "compromise" that gets you as close to VB.Net syntax as VB "proper" will allow:



    Dim C as Class1 : Set C = New Class1


    Regards, Phill W.
  8. Re: Test for “changed-without-save” condition

    That largely depends on how you move from record to record, which you've not mentioned yet!

    Re-read Posts #2 and #3.
    Those have most of the ideas you'll need in them (we did go a little off...
  9. Re: Test for “changed-without-save” condition

    You're welcome.


    That's not lazy - it's efficient! :)

    Regards, Phill W.
  10. Re: Test for “changed-without-save” condition

    "A while" depends entirely on your point of view.

    To a User, half an hour over lunch is just "a while".
    To a database, that's an eternity!

    "Pessimistic Locking" like this leads to all...
  11. Re: Test for “changed-without-save” condition

    Option 1

    Completely agree.
    Sounds like exactly the sort of thing I would do. ;)

    I think the additional "wrinkle" here is that the fields are grouped within "frames" (tab pages?) and - I...
  12. Re: Test for “changed-without-save” condition

    Changing records:
    You say that you enable the Save button when a field is changed.
    You could disable whatever controls allow navigation to another record at the same time.

    Better, though,...
  13. Replies
    8
    Views
    776

    Re: Passing an Enum to a function

    The default argument passing convention in VB is ByRef, not byVal.

    That means you have to have a variable of the correct Data Type outside the function and pass that as the argument.
    You...
  14. Replies
    6
    Views
    609

    Re: never used - slider

    The Slider Control is in "Microsoft Windows Common Controls (SP6)"

    Set the start and end values using the Min and Max properties.

    To react to changes, use the Scroll event.

    Regards, ...
  15. Replies
    6
    Views
    3,883

    Re: VB6 Critical Process

    As others have said, this is a Bad Idea at best, Malware at worst.

    I'd suggest installing your process as a Windows Service (like your antivirus example).
    That way, your process can run in an...
  16. Replies
    7
    Views
    1,252

    Re: I don't understand where the error is.

    Any Range not qualified by the Worksheet on which it appears will be assumed to be on the current Worksheet.
    You need to dot a few Worksheet qualifiers in there, something like this (untested):

    ...
  17. Re: [MSXML] Remove elements with loop + array?

    oSelection = xmlDoc.selectNodes("//foo");


    "Danger, Will Robinson!"

    Please read the documentation and learn what "//" actually means.
    It might be what you want but, I would suggest, it's...
  18. Re: [RESOLVED] RT Error 91: Object Variable not set - Why?

    "Danger, Will Robinson!"

    Whilst this syntax is perfectly valid and works as you'd expect in Visual Basic .Net, it has an "unusual" side-effect in VB "Proper".

    "Dim .. As New ..." effectively...
  19. Replies
    17
    Views
    1,789

    Re: Word Automation again

    Dim wrdApp As Object
    Set wrdApp = CreateObject("Word.Application") ' Get a reference to the Word application

    ' Lots of other Good Stuff

    wrdApp.Save ' So you don't lose everything in the...
  20. Replies
    17
    Views
    1,789

    Re: Word Automation again

    Couple of things:

    1. I don't see where you're Save()ing the document.

    2. Beware settings object references ("pointers") to Nothing:

    Near the end of your code, wrdDoc is a reference to the...
  21. Replies
    11
    Views
    1,362

    Re: [MSXML] Add raw XML to tree?

    But do you need to?

    How big is this tree going to be and, in any given run of your program, how much of that tree is a User actually going to need to look at?
    There's little point making them...
  22. Re: Create User Control Object at runtime Without form

    I have to ask - why not use a Form?
    Just because you load a Form doesn't mean anybody has to see it.

    Back in 1999, I was writing Windows Services in VB6. Yes, really.
    What made is possible...
  23. Re: How to insert an image into the form located in the middle of the form ??

    If the image is a separate Control, you can use regular centring logic.



    Sub Form_Resize()
    With Image1
    .Move ( Me.ScaleWidth - .Width ) / 2, ( Me.ScaleHeight - .Height ) / 2
    ...
  24. Replies
    24
    Views
    1,787

    Re: vb6 was the best. Why was it eliminated

    It is not "on the brink" of elimination.
    Officially, it's as dead as the Dodo.

    Practically, it continues to work, reasonably well, despite being totally ignored by its creators for over two...
  25. Thread: Stand by

    by Phill.W
    Replies
    6
    Views
    925

    Re: Stand by

    The code is running.
    In fact, it's running so well that it's not giving the User Interface any chance to redraw itself. That's why you get those strange-looking effects or even the Windows, "Not...
  26. Re: Getting the ball rolling. Which VB6 projects are you working on?

    Elroy,

    "Business Continuity" or any Risk of its failure is really, really important to Business People.
    Having a company that is "solid" and "dependable" (Hah!) to whom they can run if and when...
  27. Re: Is there code that makes the program work in its normal size?

    Personal plea: Please don't do this.

    I run my monitors at a higher resolution so that I can get more applications on screen at the same time, not so that I can have the same applications, looking...
  28. Re: SQL query to link tables with same structures using vb6 and ADODB connection?

    1 "lakh" is 100,000.
    2.5 of those is only a quarter of a million rows.
    To any, half-decent, DBMS that's child's play; they'll cope with billions of rows if properly structured and indexed.
    ...
  29. Replies
    3
    Views
    533

    Re: SQL query not workiing

    You can't use the column Alises in the Where clause - you have to use the original column names in the tables:



    SELECT
    p.*
    , b.xcoord as xcoordbegin
    , b.ycoord as ycoordbegin
    , b.zcoord...
  30. Re: Why does passing object with ByVal in a function work?

    Correct.



    Yes, ByRef is faster which is, presumably, why VB6 uses that by default.



    Under the covers, ByVal passes the Pointer [to the Object] as an [unchangeable] value, while ByRef...
  31. Re: Why does passing object with ByVal in a function work?

    Remember that with Object types, you're not passing the Object itself. You're passing a Pointer to the Object.

    However you pass that Pointer, you get access to everything inside the referenced...
  32. Replies
    1
    Views
    468

    Re: Saving the data from text boxes

    Generally speaking, if you want to be able to read data into your program (when it starts up) then you have to write that data somewhere before you shut the program down.

    For a single User, a...
  33. Replies
    3
    Views
    715

    Re: particular PROGRESSBAR

    Ahhh ... memories of one of Netscape's (I think) progress bars.

    Imagine that your progress bar is a rectangular window (a real one, in a wall).
    Then imagine a rectangular, blue truck...
  34. Re: making application access to the same database from two computers?

    Sounds nice, but doesn't it still leave you with the same problem?
    At least one of these things is sitting on a [remote] network resource that could "disappear" unexpectedly, causing corruption...
  35. Re: making application access to the same database from two computers?

    Absolutely agree.
    "+1" for the "Weird and Wonderful" qualification.

    It's perfectly possible for an Access database to be, to all intents and purposes, destroyed by a network glitch. That then...
  36. Re: making application access to the same database from two computers?

    Updating a single database from two places? That's fine. Even for Access. Mostly.
    Copying the database around? That's risky, because while you've been working on Copy A, you cannot guarantee...
  37. Replies
    16
    Views
    1,696

    Re: Select case with this

    Or, perhaps, he shares the same "illness" as the character in The Time Traveller's Wife, who finds himself unexpectedly and randomly "bouncing" around in time? That would mess up anybody's...
  38. Replies
    9
    Views
    1,129

    Re: Stupid problem with text box...

    To put the value of a TextBox's Text property into a variable whenever that value it changes?



    Private Sub Text1_Change()
    variable = Text1.Text
    End sub


    To get focus into the...
  39. Replies
    16
    Views
    1,696

    Re: Select case with this

    It looks to me like they're trying to "dissect" compiled code, possibly .Net stuff.

    I recall seeing similar strangeness trying to Reverse Engineer data files that were written by a [very] old C++...
  40. Replies
    16
    Views
    1,696

    Re: Select case with this

    And, again, FORGET ABOUT Select Case for this task.



    OK, with the string as given, you have some stuff, then "@###@", then the first field you want, then "@%/=#%", then the second string you...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width