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 derfloh 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. C

    Easy Way to Update EXE to all Workstations

    There's a very simple rule why people here talked about a separate loader.exe or a cmd batchfile or a vbs script file doing the actual EXE updating: When an EXE runs Windows protects the file and does not allow overwriting it, so an update always has to happen in separate code, be it another EXE...
  2. C

    Easy Way to Update EXE to all Workstations

    dylim, to summarize, there are many aspects you need to think about which makes updating seem like an impossible task, but you could easily start with something that's working based on only comparing a local version.txt file with version.txt in an update directory and when the update...
  3. C

    Easy Way to Update EXE to all Workstations

    GTGeek88, when finally - say - MyProgram007.EXE runs, and a user pins that to the taskbar, what then? Even after forcing users out, those not understanding this mechanism prevents updates from being done. They stick to their version until that becomes apparent (for example a table changes so...
  4. C

    Easy Way to Update EXE to all Workstations

    A Timer can do this. At least as far as I remember I never had a problem. Not with a modal form, not with a report preview (which actually is about the same modal state). So a timer running often enough so you don't need to wait long for clients to be shut down and rare enough it doesn't slow...
  5. C

    Easy Way to Update EXE to all Workstations

    Well, you very indirectly address a problem I skipped over. Users still executing an old version. Often enough they become a reason you can't update the database with changes necessary for the new version. And that's how I usually detect those and trigger the shutdown of their clients. There are...
  6. C

    Easy Way to Update EXE to all Workstations

    You should not revive an old thread, even for illustrating you already found one old thread on this, you can link to that in a new thread. Reviving old threads most of the time leads to less participation. The most often given answer is not even here in this thread, it's using a bat/cmd file...
  7. C

    setting focus on EXE run

    Well, you don't need it at all. Are you using native base controls or some framework? You might have inherited framework code that lets things work off normal behavior, i.e. you would need to dig into framework documentation on how to use framework forms and controls the right way. Also, from...
  8. C

    Is there an equivalent of "AfterRowColChange" in Listbox control?

    One last comment, Rajesh. Taking for granted the ListBox InteractiveChange event does the same for you, then turning around the perspective, the equivalent event of the grid is not a grid event but the InteractiveChange event of a text1 textbox of a column of the grid. And not even that is...
  9. C

    Is there an equivalent of "AfterRowColChange" in Listbox control?

    Yes, but a grid has no InteractiveChange event, it also has no single Value, it's a container for columns, which are a container for controls and not in the normal sense of container, but we'll just dig deeper into the quirks of word meanings in VFP properties and the programming language. I...
  10. C

    Printing from report preview gives "<cursor> is not related to the current work area"

    Hard to tell what's going on, as you earlier said you tried both private and non private datasession.
  11. C

    Printing from report preview gives "<cursor> is not related to the current work area"

    What else to do: When the error itself pops up, pick "suspend" and see, if your preview run closes the report driving cursor at some point, perhaps in a report band like a footer or summary band. I don't see how else you get this error. Just be aware that preview and printing are two passes, you...
  12. C

    Printing from report preview gives "<cursor> is not related to the current work area"

    There is no real Init in a report. A report based on a private datasession works based on the Table you set as "InitiallySelectedAlias", a report without private datasession works based on the workarea selected when you call REPORT FORM. So in both cases it makes no sense to select a workarea in...
  13. C

    Is there a FUNCTION or Property to Get the "Complete Address" of a Form Control

    The Hacker's Guide gives a hint this function is useful only for debugging and developer tools, not in production code. So when you aim to use this in production code rethink why and for what you're intending to use this. First of all, if you have an object reference, you can act on the object...
  14. C

    Bar Code Printing in Micro Size on Label

    There's a reason Zebra printers have some fame in the FoxPro community. Yes, take something specialised and it'll work best on the basis of that specialization, special command set, special internal fonts, etc. Those specific solutions are less generalizable, though, I don't know Bartender...
  15. C

    Bar Code Printing in Micro Size on Label

    If you have a printer supporting such commands, usually it'll need ESC sequences involving CHR(27) = ESC, with such printers. But once you have foxbarcode and foxbarcodeqr you can generate all kinds of 1d and 2d barcodes as graphics and print them.
  16. C

    Is there an equivalent of "AfterRowColChange" in Listbox control?

    Good points, Joe. There's always a current "active" row in a workarea, independent of controls. And some controls actually only care about that row. Grid and Listbox also display other rows. And Listbox and Grid also have in common if you click on a cell or item that changes the current active...
  17. C

    Is there an equivalent of "AfterRowColChange" in Listbox control?

    The grid has an active row, always one is a current row with the record pointer on it. The listbox has selected items, there can also be none selected or you can have multiselect, those are totally different concepts. The grid also has no value, neither single nor multiple in the sense there's a...
  18. C

    setting focus on EXE run

    Btw, what I suggest was also suggested by Mike Lewis here: https://www.tek-tips.com/threads/login-screen-question.1578281/ He's using a private variable to store the login status, your choice. But after Mike Lewis suggestion this prg should look like this: Public loginsuccessful...
  19. C

    setting focus on EXE run

    The focus of the first control was the problem, not the form minimizing. In post #4 it was solved by taborder, in post #8 it came back. No idea what he's doing. Without any code at hand hardly doable, isn't it? What you want, ravicoder, only needs two lines of code in the main startup.prg...
  20. C

    Need some help with "nicegui"

    Well, kudos for SoftwareRT's timer example, which surely is the main ingredient for that change for an automatically updating chart. I admit I'm actually not using nicegui, my professional work is much more database backend related and not even involving Python, but I like to use it for private...

Part and Inventory Search

Back
Top