Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. jmcswain

    Collections?!

    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...
  2. jmcswain

    SQL query: Outer joins

    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.
  3. jmcswain

    override form release

    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 =...
  4. jmcswain

    MESSAGE(1) and source code when error

    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...
  5. jmcswain

    Fastest incremental search needed

    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...)
  6. jmcswain

    how i can run my application and inhibit menu start windows

    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...
  7. jmcswain

    New class: property options

    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...
  8. jmcswain

    Destroy Event

    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...
  9. jmcswain

    Destroy Event

    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...
  10. jmcswain

    Destroy Event

    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...
  11. jmcswain

    Running EXE

    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...
  12. jmcswain

    Running EXE

    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.
  13. jmcswain

    Tray App

    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.
  14. jmcswain

    Tray App

    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?
  15. jmcswain

    Tray App

    Hey, does anybody know how to write a FoxPro app that appears in the system tray? (Next to the Clock and speaker icons?)
  16. jmcswain

    WM_QUIT Message

    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?

Part and Inventory Search

Back
Top