Overlay progress bar

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
User avatar
jamesearl
Posts: 11
Meble kuchenne na zamówienie - na wymiar - Wrocław
Joined: Mon Oct 22, 2012 4:44 pm

Overlay progress bar

Post by jamesearl »

I was wondering, how do I get the current value of the % value if using the default value of the Progress Bar Overlay used in PrimalForms.

User avatar
davidc
Posts: 5913
Joined: Thu Aug 18, 2011 4:56 am

Overlay progress bar

Post by davidc »

The percentage is calculated as follows:

$percentage = ([double]$progressbarpercent1.Value / [double]$progressbarpercent1.Maximum) * 100;

If you Maximum is 100 then the percentage is simply the contents of the Value property.

David
David
SAPIEN Technologies, Inc.

User avatar
jamesearl
Posts: 11
Joined: Mon Oct 22, 2012 4:44 pm

Overlay progress bar

Post by jamesearl »

davidc,
Sorry for my delayed response. Your solution worked perfectly :)