Results 1 to 3 of 3
  1. #1
    Lounger
    Join Date
    Feb 2001
    Location
    Torn between Kent & Essex, England
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Status bar text (AC 2K)

    I'm looking for a way to update the status bar text in code.
    My application does a lot of number crunching in the background and I'd like to keep the user (or, for now, the person testing and debugging (i.e. me)) informed of what's going on, that it is still working and not locked up.
    Any ideas??
    TIA
    Gavin

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Status bar text (AC 2K)

    You can set the status bar text as follows:

    SysCmd acSysCmdSetStatus, "Processing data"

    and later, clear it using

    SysCmd acSysCmdClearStatus

    You can also display a progress meter:

    Dim i As Integer
    Dim iMax As Integer
    iMax = 50
    ' Initialize progress meter - max 50 steps
    SysCmd acSysCmdInitMeter, "Processing data", iMax
    For i = 1 To iMax
    ' Do something that takes a lot of time
    ' ...
    ' Update progress meter
    SysCmd acSysCmdUpdateMeter, i
    Next i
    ' Clear status bar
    SysCmd acSysCmdRemoveMeter

  3. #3
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Status bar text (AC 2K)

    In addition to the method Hans posted, you can use the following as long as you haven't turned the screen echo off for some reason:

    Application.Echo True, "Statusbar text"

    Just substitute the phrase you need for "statusbar text"

    You can clear it with Application.Echo True, ""
    Charlotte

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •