MyPage is a personalized page based on your interests.The page is customized to help you to find content that matters you the most.


I'm not curious

HProgressBar in PowerBuilder

Published on 17 August 18
489
0
0
Some times we were supposed to use progress bars in powerbuilder
A Simple example might be when we are retrieving the datawindow and we need to show that the amount of data is retrieved in the form of Progress bar.

It is clear that we need to know the number of rows which will be retrieved before we actually retrieve the data, so we need to get the count first . I am using a simple example here -
integer li_count

select count(*) into :li_count from hscroll using sqlca;//hscroll table
// in your case need to get the count

hpb_1.position=0
hpb_1.setstep=1
hpb_1.setrange( 1, li_count)

dw_scroll.retrieve( )
In the datawindow retrieverow event
hpb_1.position=hpb_1.position+1
That's it. It will be like below -
HProgressBar in PowerBuilder - Image 1
Some times we were supposed to use progress bars in powerbuilderA Simple example might be when we are retrieving the datawindow and we need to show that the amount of data is retrieved in the form of Progress bar.

It is clear that we need to know the number of rows which will be retrieved before we actually retrieve the data, so we need to get the count first . I am using a simple example here -

integer li_count

select count(*) into :li_count from hscroll using sqlca;//hscroll table

// in your case need to get the count

hpb_1.position=0

hpb_1.setstep=1

hpb_1.setrange( 1, li_count)

dw_scroll.retrieve( )

In the datawindow retrieverow event

hpb_1.position=hpb_1.position+1

That's it. It will be like below -

HProgressBar in PowerBuilder - Image 1

This blog is listed under Development & Implementations Community

Related Posts:
Post a Comment

Please notify me the replies via email.

Important:
  • We hope the conversations that take place on MyTechLogy.com will be constructive and thought-provoking.
  • To ensure the quality of the discussion, our moderators may review/edit the comments for clarity and relevance.
  • Comments that are promotional, mean-spirited, or off-topic may be deleted per the moderators' judgment.
You may also be interested in
 
Awards & Accolades for MyTechLogy
Winner of
REDHERRING
Top 100 Asia
Finalist at SiTF Awards 2014 under the category Best Social & Community Product
Finalist at HR Vendor of the Year 2015 Awards under the category Best Learning Management System
Finalist at HR Vendor of the Year 2015 Awards under the category Best Talent Management Software
Hidden Image Url