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 strongm 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. DirkVFP

    Using asynchronous SQLEXEC() still freezes the UI

    Mike, No, there is nothing wrong with the progress bar, all I wanted to find out with this thread was if I could show a progress bar, and have the user continue to use the form while the query is being executed. (I forgot to mention in my OP that I'm already using a progress bar informing the...
  2. DirkVFP

    Using asynchronous SQLEXEC() still freezes the UI

    A progress bar showing the query progress is in fact all I want, it's simple and the user knows he has to wait.
  3. DirkVFP

    Using asynchronous SQLEXEC() still freezes the UI

    Thanks for the responses, I'm not actually fetching large amounts of data, but I'm calculating something. This involves summing and joining. Maybe the query can be tweaked abit, but it will still take some time for giving the UI a chance to freeze up. In anyway, thanks for the tips, I will...
  4. DirkVFP

    Using asynchronous SQLEXEC() still freezes the UI

    Mike, Thanks again for the quick response. I was hoping VFP offered something like asynchronous programming used in .NET (or even use different threads), but since that is not the case I will follow your advice. Dirk
  5. DirkVFP

    Using asynchronous SQLEXEC() still freezes the UI

    Thanks for clearing this out Mike. However I'm still stuck with a UI freezing up. Is there any common practice to counter such behaviour? Dirk
  6. DirkVFP

    Using asynchronous SQLEXEC() still freezes the UI

    ...code following the example from Mike Lewis (link: http://www.tek-tips.com/viewthread.cfm?qid=801062). Here's the code:LOCAL lnConn,lcQuery,lnRes *** Setting up the connection. lnConn = SQLCONNECT("dsn_name","login","pass") SQLSETPROP(lnConn,"Asynchronous",.t.) *** The query which will take...
  7. DirkVFP

    IDE resets each time I start VFP

    Mike, Thanks for the quick response! While looking for these files (you didn't mention a specific location) I saw these files were stored in C:\Documents and Settings\<USER>\Application Data\Microsoft\Visual FoxPro. Seeing the path, it reminded me that you can adjust some file locations. It...
  8. DirkVFP

    IDE resets each time I start VFP

    Hi all, I've been using VFP7 for some time now and I've never had any problems with the IDE. But since last friday all my settings are gone. Each and every time I start VFP the IDE is in its default state. Redecorating my IDE to my likings is something I want to do once, and not each time I...
  9. DirkVFP

    RELEASE myObject does not call myObject's Destroy

    My main form's Destroy was always called, it was the myObject's Destroy method that did not receive any calls if it contained any references.
  10. DirkVFP

    RELEASE myObject does not call myObject's Destroy

    Bart, Your suggestion to make the object reference a property of my main form is more OOP, I will implement that. this.searchform = createobject('myclass') This won't work, since my class isn't a form an sich. The search form is but a part of it.
  11. DirkVFP

    RELEASE myObject does not call myObject's Destroy

    ...came up with another solution. I've created a Close method which I call explicitly in my main form's Destroy event:myObject.Close RELEASE myObject *** Release other resources The myObject.Close method is, in fact, my old Destroy method. This way I'm keeping al my cleaning up code in one...
  12. DirkVFP

    RELEASE myObject does not call myObject's Destroy

    ...form I do the following in its Destroy event:RELEASE myObject I put a Destroy procedure in myClass which should handle this: PROCEDURE Destroy *** If search form is still open, close it. IF VARTYPE(This.m_oSearchForm) = "O" THEN This.m_oSearchForm.Release ENDIF ENDPROC And...
  13. DirkVFP

    GetAdaptersInfo - don't use in 2k3/XP?

    I'm the kinda guy who wants to know the reason WHY some things are to be done a different way, but that's just me ;)
  14. DirkVFP

    GetAdaptersInfo - don't use in 2k3/XP?

    Hello people, According to a comment here one should not use GetAdaptersInfo in Windows 2003/XP. Some of our software uses this function and sometimes it returns with an error. This behaviour is (so far it seems) completely random. So now I'm wondering: is the comment in the link I provided...
  15. DirkVFP

    Report preview is ok, report itself is not.

    I haven't tested it so far, another project has my attention so far, but I will post my findings here whenever I have some. Tamar, this form indeed contains a grid, I will look at the grid events if anything happens. Strange thing is this form is used for over 6 months now and this bevahiour...
  16. DirkVFP

    Report preview is ok, report itself is not.

    Yes, it only occurs when the user much choose a printer. But it does not occur always, roughly each 3rd or 4th time. Yep, that is, after the user selected their printer. Tested it on different printers, behaviour showed on all printers.
  17. DirkVFP

    Report preview is ok, report itself is not.

    Stella, I'm 100% sure there is nothing wrong with the cursor I use, since my previews are always correct. When my strange behaviour occurs, it will print the first line of either the first page or the second page (haven't tested it with report which had more pages). And it always occurs when...
  18. DirkVFP

    Report preview is ok, report itself is not.

    I've been testing on different systems and the behaviour is not 100% reproduceable. What I've found out is that whenever I print a report via the following code, the behaviour occurs roughly each 3rd or 4th time:REPORT FORM ".\report" TO PRINTER PROMPT NOCONSOLE Using a different setup where...
  19. DirkVFP

    Report preview is ok, report itself is not.

    So many typos after preview my post. Where's the edit button when you need one ;)
  20. DirkVFP

    Report preview is ok, report itself is not.

    Hello all, Since last week some of my reports are showing strange behaviour. I usually have one cursor being 'consumed' in my reports and where it normally prints all lines, all of a sudden only the first line is printed. On the preview the report looks good (i have all the lines on my...

Part and Inventory Search

Back
Top