I'm a long-time procedural programmer gradually easing into OOP. In VB I wrote a nifty little class complete with properties and methods, and one of my properties was a "Fields" collection. (It's a VBClip class for reading clipper tables with more than 255 fields in them using...
FYI: Whenever you add a field reference to a where clause, SQL (in any language) will tack on "AND NOT NULL" to the end of it. It's just the nature of SQL.
fluteplr's reply of course is the correct fix...I just wanted to point out that it's a SQL thing, not FoxPro.
You need to put it in the QueryUnload event of the form. I have no idea why, so don't ask me. :)
I have an app that can be run in the system tray or as a standard app. Here's the code in my QueryUnload event of the main form:
IF GetSysData("SYSTRAY") THEN
NODEFAULT
This.Visible =...
In the Project Info dialog (from the Project Menu), check "Debug Info". This will allow MESSAGE() to display the offending line of code from an EXE. If you do this, I highly recommend also checking "Encrypted", which will prevent somebody from viewing your source code by...
Arrays are the fastest. Get the data into an array and then loop through comparing with the $ operator, populating your combo box for matches. Once you get that up and running, experiment with optimization...(The AT() function instead of $, etcetera...)
It could be done in VFP, but what possible reason could you have for wanting to? If you really do have a legitimate need for this, use a language with some power like Visual C++. Although, honestly, I can't imagine a legitimate need for this.
Question for you: Are you saying that when your...
You are looking for a simple enumeration, which is a very common and easy to implement feature in any language. Simply assign a name to the enumeration, add a list of valid values along with the labels associated with each value, and set the property type of your new custom property to the...
Thanks, Jon, once again you have the answers I need.
You make a good point about the taskbar thing. As you probably guessed, I used your tips about forcing a single instance to activate and setforeground from the tray icon's double-click. (My caption bar does indeed change.)
After reflecting...
Well, it's pretty much just as easy to trap the Close click in the Destroy event. The question is, how do I prevent the form from being unloaded?
Let's say my code looks like:
On Shutdown Do IgnoreClose
DO FORM frmMain NAME gfrmMain LINKED
READ EVENTS
PROCEDURE IgnoreClose
* What do I put...
My application minimizes to the system tray, and it's working beautifully now. I have just two things to work out that would polish it off perfectly.
First, is there a way to prevent my app from appearing in the taskbar when it is open and visible?
Second, I'd like to keep the Close button...
Thanks to all for the tips here and the links to other threads.
My application is unusual, however, in a couple of ways. In particular, it's a tray application that can also open up into "regular" application mode. When you "close" the app by clicking the control box, I...
How can I check to see iff my app is already running when the user double clicks the shortcut a second time?
I only want one instance to ever be running.
I desperately need this. Anybody know how to write FLLs, if that would work? Anyone know how I can get a handle for the tray icon, so I can try to DO MENU WITH the handle? Aything at all will be appreciated.
That works perfectly to get the app into the system tray. However, I also need to be able to add a (dynamic) menu to the system tray icon. Any other ideas?
I want my foxpro app to automatically close when you go to the Start Menu and click ShutDown. I believe ShutDown sends a WM_QUIT message to all applications.
What event, if any, in my app will fire off when the app receives a WM_QUIT? Or, if the answer is none, how can I trap it using a hook?
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.