Here's the description for each that my book gives to help you decide -
CursorTypes:
adOpenKeyset. You can't see records that have been added to the recordset by other users, but updates and deletes performed by other users do affect your recordset. Most efficient if recordset is large...
There are 2 ways to use the If statement:
If x > y Then y = 0
'or
If x > y Then
y = 0
End If
Only the second way requires an End If, because the Then keyword is followed by the end of the line. In ur code it looks like you've merged the two. You should either get rid of the End If...
MouseMove is wierd like that, you can never be sure how many times Windows will call it for you. If the mouse is moved 100 pixels, it could be called anywhere between 1 and 100 times depending on the environment. What I would do is keep track of the last X and Y coordinates and draw a line to...
When you say 'linked to another table' do you mean a relationship? If so, I don't think it's possible to add/remove a relationship through code, but then again I haven't seen everything yet. You can use SQL queries to create a table, and if I hadn't left my book at home today I'd be able to...
To expand on what sunaj recommended, you shouldn't use the End statement if you have forms in memory because they won't be unloaded. What I do instead is Unload the form, and in that form's Unload event I use this code to unload any other forms that may be in memory:
Form_Unload(Cancel As...
Form_Load didn't run on my machine while setting CustomerID. I think it fires if you reference an intrinsic property of the form, like BackColor or Width. I've used this same technique successfully in my own projects, setting my custom properties and letting the Show method call Load when...
Like any other object, you can add your own properties and methods to forms that easily solve problems like that:
'in CustForm:
Private m_CustID As String
Property Let CustomerID(ByVal NewCustID As String)
m_CustID = NewCustID
End Property
Property Get CustomerID() As String
CustomerID =...
// Include files
#include "stdio.h"
// Aplication Initialization
int main ()
{
printf ("hello, World!\n");
return 0;
} // Added this!
~Mike
Any man willing to sacrifice liberty for security deserves neither liberty nor security.
-Ben Franklin
What happens if you change ur #include statement to this?
#include "stdio.h"
If it's in quotes the compiler looks in the application path directory, then the windows system directory. #include <stdio.h> tells the compiler to look in the system directory only, and maybe it's not...
Did you make this a Win32 Console application? Can u copy/paste the exact error string you're getting?
~Mike
Any man willing to sacrifice liberty for security deserves neither liberty nor security.
-Ben Franklin
Are you looking for the Tree View control?
~Mike
Any man willing to sacrifice liberty for security deserves neither liberty nor security.
-Ben Franklin
There's some info in thread116-189071 that may be helpful to you also.
~Mike
Any man willing to sacrifice liberty for security deserves neither liberty nor security.
-Ben Franklin
Yes, nID is IDC_EDIT1 in the GetDlgItem() argument list, and you can call CDialog::OnOK() if u don't have an OK button, which will DoDataExchange() and close the dialog. You shouldn't need OnOK() unless you have member variables that need updated via DoDataExchange(), but you can use it anyway...
I'm sorry, if you only have one dialog you won't need to call DoModal() to show it...
It seems GetDlgItemText() is returning 0 into 'work' and storing the window's text into 'tmp', which would explain the 'x0' message box, I think (I haven't used those functions, there may be wierd ways to use...
Ok, you'll need to add variables to the dialog class to represent the values in the dialog's edit boxes. You'll generally make a member variable to hold values for each control on the dialog. It's best to let the class wizard do this by right-clicking on the control (edit box) and select...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.