Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Downloads
Search: 

Calculator class
Borislav Borissov, Microcomplex
As Elyse Pomerantz noticed you can't modify a VCX library with VFP8 or older. This is because of MemberData property inserted automaticly by VFP9. This now is improved. Also there was a bug noticed by Soykan, that is removed. Meeting a request of my friend Soykan Ozcelik in this version you can store the result in _SCREEN.ActiveForm.ActiveControl if it's BaseClass is TextBox or EditBox. In this version I added brackets and put a possibilities to raise the numbers to the power of 2 or any other. Also you can copy to clipboard not only the resul but the whole history. Also improved BackColors of buttons so in VFP 9 the must look good now. Thanks to Hugo Ranea for idea of resizing the Calculator. This is a small calculator writen in pure FoxPro. It has a memory, scrolling history and can copy the result in clipboard. This file contains a Visual and non visual versions of Calculator class, feel free to change it, use it and do with it whatever you want ;o)
Created on
19 years ago
Downloads
2418
File type
Freeware
Rating
4.50/5.00
General information
Rating:
4.50/5.00 (2 rates) Rate this item
Description
I personaly use it this way: In the main application class I do this.AddObject("Calculator") ON KEY LABEL ALT+F2 oApp.Caclulator.Show()
Created by
Borislav Borissov, Microcomplex
He enjoys a successful career in Payroll, HR and Time and Attendance software as well as a custom business and commercial software developer putting together all of his talents: analysis, database design and optimization, software development and implementation. His efforts are devoted in software building, that is easy to understand, learn and deal with, using Visual FoxPro (ver 5 to 9), C++, SQL Server. He is a manager and a senior programmer at Microcomplex Int., a gold medal awarded company ...

Comments
i am trying to use this class but disappear immediately after showing calculator window i am use as below in my main.prg *main.prg **** set classlib to calculator addi on key label F6 do aaacalc proc aaacalc **** local aaacalc aaacalc=createob("calculator") aaacalc.show() and how i can store the result in a variable warm regards, mk. Mk Sharma, December 1, 2008

Very Nice!!! Clayton Martins, February 6, 2009

Add a comment