Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Share Your Creations
Home Register FAQ Members List 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, 09:53 PM
Senior Member
 
Join Date: May 2007
Posts: 187
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, 32 views)
__________________
David Erez
Ramat Hasharon, Israel
Reply With Quote
  #2 (permalink)  
Old 10-19-2007, 08:42 AM
Senior Member
 
Join Date: May 2007
Posts: 187
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, 11:50 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,314
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

PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD

DLL Version Listing
Reply With Quote
  #4 (permalink)  
Old 10-21-2007, 12:59 PM
Senior Member
 
Join Date: May 2007
Posts: 187
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
SCalculator 3 derez Share Your Creations 22 02-08-2008 01:44 PM
SCalculator 4 derez Share Your Creations 5 01-08-2008 11:22 AM


All times are GMT. The time now is 05:38 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0