Search:
Type: Posts; User: Phill.W
Search:
Search took 0.06 seconds.
-
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...
-
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...
-
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,...
-
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...
-
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...
-
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...
-
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.
-
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...
-
You're welcome.
That's not lazy - it's efficient! :)
Regards, Phill W.
-
"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...
-
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...
-
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,...
-
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...
-
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, ...
-
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...
-
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):
...
-
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...
-
"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...
-
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...
-
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...
-
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...
-
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...
-
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
...
-
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...
-
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...
-
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...
-
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...
-
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.
...
-
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...
-
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...
-
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...
-
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...
-
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...
-
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...
-
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...
-
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...
-
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...
-
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...
-
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++...
-
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...
|
Click Here to Expand Forum to Full Width
|