View Full Version : generating progress bar in oracle forms
Tiago Rocha
06-26-2003, 11:22 AM
"Manikandan" <member12054@dbforums.com> escreveu na mensagem
news:3037382.1056461807@dbforums.com... Hi, I need to display the progress bar in my application. My program is reading an excel and updating oracle tables.So i should show this process using progress bar.
Try this function below:
It have it's parameters in portuguese, easy to figure out what they mean.
FUNCTION Progresso( nAtual in Number, nTotal in Number ) RETURN VarChar2 IS
nQtNs Number := 0 ;
nQtPontos Number := 20 ;
BEGIN
if nTotal <> 0 then
nQtNs := ( nAtual * nQtPontos ) / nTotal ;
end if ;
Return RPad( 'n', nQtNs, 'n' ) ;
END;
You should create a rectangle and put a display item on it, set the font of
the display item to wingdings (or any other you want). The 'n' character in
wingdings is that little box, great for a progress bar.
Easy aint it?
--
Atenciosamente,
Tiago Rocha
Consultor
-----------------------------------------------------
Apply Solutions
MyLounge.com Site Map
Forum:
Cars,
Cell Phone,
Database,
Games,
Home Improvement,
IT,
Music,
School,
Sports,
Web Design,
Web Server,
Weight Loss
The MyLounge.com forum is intended for informational use only and should not
be relied upon and is not a substitute for any advice. The information contained
on MyLounge.com are opinions and suggestions of members and is not a representation
of the opinions of MyLounge.com. MyLounge.com does not warrant or vouch for
the accuracy, completeness or usefulness of any postings or the qualifications
of any person responding. Please consult a expert or seek the services of an
attorney in your area for more accuracy on your specific situation. Please note
that our forums also serve as mirrors to Usenet newsgroups. Many posts you see
on our forums are made by newsgroup users who may not be members of MyLounge.com
Term of Service
vBulletin v3.0.7, Copyright ©2000-2008, Jelsoft Enterprises Ltd.