Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Share Your Creations
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Share Your Creations Show your developed application to Basic4ppc community. Please include source code if possible.

SCalculator 3

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-30-2007, 09:51 AM
derez's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Posts: 978
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default SCalculator 3

I have upgraded the SCalculator:
a. Addition of 15 levels of brackets and brackets window.
b. Addition of factorial function N!
c. Addition of DMS display function.
d. Addition of MOD (modulu) function
e. Addition of input scrolling.
f. Buttons re-order and new labels
g. Code improvement (by moving common tasks to common subs).
h. Correction of bugs.

You are invited to look at it and use it if you want to.
The attached file contains the code and a setup program, including operating manual.
It can run on the desktop but the inscriptions on the buttons do not fit.
I shall appreciate comments and suggestions for improvements or additions (there are two spare buttons..)
Attached Images
File Type: jpg Scalculator3.JPG (27.4 KB, 213 views)
Attached Files
File Type: zip Calculator.zip (420.7 KB, 271 views)
__________________
David Erez
Ramat Hasharon, Israel
Reply With Quote
  #2 (permalink)  
Old 10-30-2007, 02:50 PM
Senior Member
 
Join Date: Apr 2007
Location: Kindred,ND
Posts: 122
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Its well done in fact I have been using v2 as the calc in a shell for myself. I did add a exit button on v2 before compile to exe
Why 2 blank buttons?
Reply With Quote
  #3 (permalink)  
Old 10-30-2007, 05:22 PM
derez's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Posts: 978
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default

Growth potential
If you have a good idea how to use them - tell me
__________________
David Erez
Ramat Hasharon, Israel
Reply With Quote
  #4 (permalink)  
Old 10-31-2007, 07:39 AM
RandomCoder's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Derbyshire, UK
Posts: 623
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Very nice, I thought you'd be able to compact some of the code by combining it to common subs.
This and the new features must have taken a significant amount of time

Regards,
RandomCoder
__________________
"Defeat never comes to any man until he admits it."Josephus Daniels
Reply With Quote
  #5 (permalink)  
Old 10-31-2007, 12:27 PM
derez's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Posts: 978
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default

Mainly by the use of "sender" for groups of keys with similar functionality
__________________
David Erez
Ramat Hasharon, Israel
Reply With Quote
  #6 (permalink)  
Old 11-01-2007, 02:32 AM
alfcen's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Okinawa, Ryukyu Islands
Posts: 810
Send a message via Skype™ to alfcen
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Hello Derez,
Impressed by your brainwork!
Idea: what about adding bitwise.dll to perform Dec to Hex / Hex to Dec, etc. This will well occupy those two vacant buttons

One more:

Atnq (unlike Atn gets the correct quadrant)

Code:
Sub Atnq(x, y)
  z=
Atan(x/y)
  
if y < 0 Then z = z + cPI
  
if y > 0 and x < 0 then z = z + cPI*2
  
Return z
End Sub
Cheers
Robert
Reply With Quote
  #7 (permalink)  
Old 11-07-2007, 07:48 PM
derez's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Posts: 978
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default hex dex

Thank you Alfcen
I have considered the use of HEX and DEC but voted against , I don't feel that anybody really needs it (although you find it in most scientific calculators).
And thanks for the ATNQ tip - it will be used !
David
__________________
David Erez
Ramat Hasharon, Israel
Reply With Quote
  #8 (permalink)  
Old 11-08-2007, 02:13 AM
alfcen's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Okinawa, Ryukyu Islands
Posts: 810
Send a message via Skype™ to alfcen
Awards Showcase
Beta Tester 
Total Awards: 1
Default

No problem, David, I just find HEX-DEC-HEX or BIN-DEC-BIN conversions helpful during programming since basic4ppc has no immediate window like embVB.
Anyway, looking forward to the next version
Reply With Quote
  #9 (permalink)  
Old 11-08-2007, 07:05 AM
Knows the basics
 
Join Date: May 2007
Location: Czech Republic
Posts: 72
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Hi,
for me is HEX,BIN,DEC conversion very useful as well (and for everybody who makes programs for microcontrolers, I think). But I agree that most of users doesn't need it. Anyway your calculator is very nice, I like it.
Petr
Reply With Quote
  #10 (permalink)  
Old 11-08-2007, 03:04 PM
Senior Member
 
Join Date: Apr 2007
Location: Kindred,ND
Posts: 122
Awards Showcase
Beta Tester 
Total Awards: 1
Default hex dec etc

I use another program for hex etc but it would be nice in the scalc, Also ascii would be good then I could remove 2 programs. just my 2 cents
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
SCalculator 4 derez Share Your Creations 9 01-02-2010 05:27 PM
SCalculator 2 derez Share Your Creations 3 10-21-2007 11:59 AM


All times are GMT. The time now is 11:36 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0