Home » Developer & Programmer » Forms » how can i generate a calculator in forms6i (forms6i)
how can i generate a calculator in forms6i [message #346589] Tue, 09 September 2008 01:20 Go to next message
subba99
Messages: 31
Registered: September 2008
Member
how can i generate a calculator like the attached file,please give the solution if any one knows
  • Attachment: calc.gif
    (Size: 576.05KB, Downloaded 745 times)
Re: how can i generate a calculator in forms6i [message #346596 is a reply to message #346589] Tue, 09 September 2008 01:41 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Define a lot of buttons and put code behind them.

David
Re: how can i generate a calculator in forms6i [message #346671 is a reply to message #346596] Tue, 09 September 2008 05:45 Go to previous messageGo to next message
subba99
Messages: 31
Registered: September 2008
Member
HI DAVID
CAN U SEND ME THE DESIGNED FORM IN CALCULATOR
Re: how can i generate a calculator in forms6i [message #346897 is a reply to message #346671] Wed, 10 September 2008 01:04 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
No. It isn't hard. Define the buttons and some hidden control fields and go for it. You could try searching this forum or googling it but basically it is pretty easy and should only take 4-5 hours to get the basics working.

David
Re: how can i generate a calculator in forms6i [message #346900 is a reply to message #346897] Wed, 10 September 2008 01:06 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
The backspace would be the most difficult but you could take the current contents of the 'result' field, trim off a character, repopulate the 'result' field and then 'synchronize' to redisplay it.

If you want one in Java that's already done then go to the Oracle Forms website and look at the PJC sample code.

David
Re: how can i generate a calculator in forms6i [message #347052 is a reply to message #346900] Wed, 10 September 2008 09:25 Go to previous messageGo to next message
subba99
Messages: 31
Registered: September 2008
Member
Thks david
i got the solution
Re: how can i generate a calculator in forms6i [message #347531 is a reply to message #347052] Fri, 12 September 2008 00:53 Go to previous messageGo to next message
gozuhair
Messages: 206
Registered: January 2008
Senior Member
send me the fmb file of it at zkhan@dewan-motors.com
Re: how can i generate a calculator in forms6i [message #347654 is a reply to message #347531] Fri, 12 September 2008 10:21 Go to previous messageGo to next message
subba99
Messages: 31
Registered: September 2008
Member
1)hi, i found one application in calculator in this forum only,but i am not understanding the code,any how i am sending to u

2) In this application there is no backspace,but u can develop it
placing this code in when button pressed trigger
declare
var varchar2(50);
begin
var:=:t1 /*here t1 is textitem where we enter formula
t1:=substr(var,1,length(var)-1);
end
or u can develop it by using trim function also
Re: how can i generate a calculator in forms6i [message #353127 is a reply to message #347654] Sat, 11 October 2008 11:41 Go to previous messageGo to next message
madhuribondre
Messages: 3
Registered: October 2008
Junior Member
below code will work on windows client

host('calc');
Re: how can i generate a calculator in forms6i [message #353975 is a reply to message #353127] Wed, 15 October 2008 23:39 Go to previous message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Brilliant!

David
Previous Topic: any suggestion for my forms
Next Topic: How to view HTML text in Forms
Goto Forum:
  


Current Time: Tue Nov 05 13:18:08 CST 2024