Get a Jumpstart with our Sample Apps
Results 1 to 10 of 10

Thread: Here is a friendly Progress Bar for you to use

  1. #1
    Member Mike Thomson's Avatar
    Real Name
    Mike Thomson
    Join Date
    Jul 2005
    Location
    Queensland, Australia
    Posts
    266

    Default Here is a friendly Progress Bar for you to use

    I thought I would share a a function for a progress bar which I find very handy. (see attachment)
    To use it in your code simply call the function as follows:-

    ProgressBar ({Caption Title},{Message},{Percentage},[Show% T/F {optional}]

    For Example:

    '*** Sample Test Code *****
    nMax = 1000
    for nCount=1 to nMax
    xProgressBar=nCount/nMax*100
    progressbar("Progress","Updating - Please Wait!",xProgressBar,.F.)
    next nCount


    Its that simple, you do not even have to worry about only calling the function only when the percentage has changed to the next whole number, the function will do it for you!(ie: As in the above example which would yield percentages of 1.1, 1.2, 1.4 etc) and would otherwise result in exceessive screen updating. (and obviously slow down your process loop)

  2. #2
    "Certified" Alphaholic
    Real Name
    Raymond Lyons
    Join Date
    Apr 2000
    Location
    Carlsbad, CA
    Posts
    2,140

    Default RE: Here is a friendly Progress Bar for you to use

    Mike,

    Thanks. You should put this in the Code Archive also.

    Ray

  3. #3
    Member Mike Thomson's Avatar
    Real Name
    Mike Thomson
    Join Date
    Jul 2005
    Location
    Queensland, Australia
    Posts
    266

    Default RE: Here is a friendly Progress Bar for you to use

    This has now been placed in the code Archive


    Mike

  4. #4
    Jeff, Richards
    Guest

    Default RE: Here is a friendly Progress Bar for you to use

    Can you explain how to use this?
    Thanks

  5. #5
    Member Mike Thomson's Avatar
    Real Name
    Mike Thomson
    Join Date
    Jul 2005
    Location
    Queensland, Australia
    Posts
    266

    Default RE: Here is a friendly Progress Bar for you to use

    You need to save the attached text file as a function called progressbar (via the code Tab - Create New Function , paste the text from the text file)

    Yo use it just call it with the required parameters as per the sample code I supplied

    Regards,

    Mike

  6. #6
    VAR davej's Avatar
    Real Name
    Dave Jampole
    Join Date
    Apr 2000
    Location
    Haughton, LA ( just east of Shreveport, Louisiana)
    Posts
    2,524

    Default RE: Here is a friendly Progress Bar for you to use

    Mike,

    Thank you - it works great.

    Dave

  7. #7
    Member Mike Thomson's Avatar
    Real Name
    Mike Thomson
    Join Date
    Jul 2005
    Location
    Queensland, Australia
    Posts
    266

    Default RE: Here is a friendly Progress Bar for you to use

    I have had a few people e-mail me asking if they can use this in their commercial apps

    The answer is Yes - it is there for the community

    Mike

  8. #8
    Member
    Real Name
    Miles Nolan
    Join Date
    Jan 2008
    Posts
    248

    Default Re: Here is a friendly Progress Bar for you to use

    Hi Mike
    Pardon the intrusion I just came across your thread and am trying to implement this into my code, I seem to be getting the following error
    Fatal error executing Ajax callback: Error executing Ajax callback. Error executing Ajax callback function 'Emailinvoice ': command: ui_modeless_dlg_box (fDlgName,sDlg)
    Error calling 'XDialogBox' a5wui method.
    If you could help I would be very grateful
    thanks in advance
    john

  9. #9
    "Certified" Alphaholic Stan Mathews's Avatar
    Real Name
    Stan Mathews
    Join Date
    Apr 2000
    Location
    Bowling Green, KY
    Posts
    24,696

    Default Re: Here is a friendly Progress Bar for you to use

    This is a ten year old thread in the desktop section and like all xdialog code, Desktop applications only. Is that where you're trying to use it?
    There can be only one.

  10. #10
    Member
    Real Name
    Miles Nolan
    Join Date
    Jan 2008
    Posts
    248

    Default Re: Here is a friendly Progress Bar for you to use

    Sorry about that I just stumbled over the thread , my app is A5 v11 web
    thanks anyway

Similar Threads

  1. Progress Bar
    By Mike Thomson in forum Code Archive
    Replies: 0
    Last Post: 08-26-2005, 03:51 PM
  2. {progress}
    By Bill Parker in forum Alpha Five Version 5
    Replies: 3
    Last Post: 08-30-2004, 06:16 AM
  3. Progress Bar
    By alexmuir in forum Alpha Five Version 5
    Replies: 3
    Last Post: 02-06-2004, 05:46 AM
  4. Q: Is v5 more developer friendly?
    By Eric Ruff in forum Alpha Five Version 5
    Replies: 4
    Last Post: 07-23-2002, 11:47 AM
  5. Printer Friendly from Forum
    By fgpylant in forum Alpha Five Version 4
    Replies: 2
    Last Post: 03-26-2002, 11:39 AM

Posting Permissions

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