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 2

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

The competition made me look again at my SCalculator and I found a very important capability missing - the capability to use brackets when you want to do a calculation with other order than the mathematical.
The addition of this capability was surprisingly simple -
I changed the three registers and the three operation level storage to arrays, and now they work in the same way but for various levels for each pair of brackets.
I added another function - the Factorial N!.

I shall apreciate comments and suggestions for improvements. For example :
almost all the subs start with a set of checks that if they fail the sub ends by "return".
If I take this returning part to another common sub, i cannot use "return" because it will return and perform the originating sub instead of getting out.
i am sure someone knows how to do it
Attached Files
File Type: zip SCalculator_2.zip (57.0 KB, 48 views)
__________________
David Erez
Ramat Hasharon, Israel
Reply With Quote
  #2 (permalink)  
Old 10-19-2007, 07:42 AM
derez's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Posts: 978
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default Common sub

I found a way to do it:
the calling sub use " If F_common = false Then Return"
and in the common sub, all the checks return false if they are met.
Nice talking to myself...
__________________
David Erez
Ramat Hasharon, Israel
Reply With Quote
  #3 (permalink)  
Old 10-20-2007, 10:50 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,344
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

I have found that the simples way of resolving emerging issues,...they always seems to laugth at us as sying " You'll never find the simples ansewer that is right under your nose!!"

Them if that fails I come to the forum and ask the "stuppidiest" (notice the quotes!!) and find that the ansewr had already pass by me but I was too busy making the question...

Anyway glad to have here..as I recall you are one of the Original "samlers" of basic4ppc, right...?
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)

My Posts helped you? Consider Buying me a Porto Glass!
Reply With Quote
  #4 (permalink)  
Old 10-21-2007, 11:59 AM
derez's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Posts: 978
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default

I think that the need to phrase your problem and write it down has some effect on the growing of the solution inside you...

and yes - I have started with version 4 and since then it became a large consumer of my free time...
__________________
David Erez
Ramat Hasharon, Israel
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 3 derez Share Your Creations 22 02-08-2008 12:44 PM


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


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