Welcome to nCalc Official Help


HELP nCalc (Notes + Calculator) - English

Projections, forecasts and simulations.


nCalc is a simple Notepad that allows you to perform simple and complex calculations in order to make projections, simulations and forecasts in any field.
From coin counting to the Bussiness Plan, nCalc adapts to all needs quickly and easily.

 

 

NCalc features for Windows

 

With nCalc we have 3 choices:

1 - Notepad: The first is to use the program as a simple Notepad to take notes;

2 - Notepad + Calculator: The second is to use Notepad to take notes and at the same time make simple calculations (addition, subtraction, multiplication and division);

3 - nCalc Script: The third is to write applications in VbScript, to perform complex calculations, which interact with nCalc;
 


Notepad
Notepad works like a normal Blocnote. Just write the notes and then save the file (.txt) in the location you want. Example, let's write "Hello World" and then save the file with a name of your choice.

 

 

Notepad + Calculator
When taking notes you can also perform simple calculations. Let's take a practical example, write in nCalc the following:

Appetizers
  +10

First dishes
  Spaghetti, Raviole, Penne
  +3           +6          +5


The total will be 24.

It will be displayed at the top in the field called TotX.
If we select the text, pressing the left mouse button on a specific area, the bottom of the selection will show the total of the selection. The field in the bottom part is called TotY.

TotX and TotY are 2 important objects, because they allow nCalc to derive a value through a VbScript function.

If we want to use comments, useful in certain situations, we can use the symbols # or ' (shift + question mark).
In some cases the sign of comments is mandatory, as in this case, for example:

Cell phone charging
+10 Made at number 333/333333333

In this case it follows the / sign and to prevent the program from interpreting it as a division it is mandatory to use the comment in this way:

+10 # for the number 333/333333333

or in this way:

+10 'for the number 333/333333333

 

Or we can prevent the program from interpreting the division (or any other operation) by simply adding a space:

 

+10 for the number 333 / 333333333

 

With dot:

 

+10  EURO Effettuata al numero 333.333333333

 

Write a date:

 

03/09/2009

 

03.09.2019 or 03 / 09 / 2019

 

or

 

# 03/09/2019

 

 

nCalc and VbScript
In nCalc you can add VbScript codes and make the program suitable for more complex operations. For example if we want to calculate a complex string we can do it this way:


1. Create a new Worksheet by pressing the Save button.

2. Now press the F4 button on the keyboard or click on the nScript Module icon or Menu> Insert nCalc Script ...

Copy the following:

 

A = 2+6+3*8

echo = A

 

Close the module, Save, and press the F5 key on the keyboard, or click on the icon on the Right Arrow or Menu> Run nCalc Script ...

The result will be 32.

As mentioned above, nCalc can use VbScript, let's see how:

 

# nCalc by Rosario Sancetta
# Ver. 2.00 - Copyright 2019 - All rigths reserved.

 

This is an example:

 

Echo = "Ciao a tutti "

Echo = Echo & "Io sono nCalc"

 

Note: Echo prints the text on the screen.
To connect the scripts to nCalc we can use the TotX and TotY objects. Copy the code below into the nCalc Script module and press F5:

'This data in the Worksheet:
+10
+20


'These data within the Calc Script Module
'Assign the TotX total from +10 and +20 to variable A
'TotX is the total of the inside sheet.

A = TotX

'Add new information

B = A + 4 * 8 + 21

'The total will be shown below in the TotY field
TotY = B

'TotY is the subtotal that is shown by selecting some calculations with the mouse or with VbScript.

We will thus have the total document total (TotX) at the top, while the total of the document calculated with VbScript (TotY) at the bottom.
 

 

 

Instructions nCalc and VbScript

To be written in the nCalc Script module.

 

Echo =

Print a text or a result to Video.

 

Example:

Echo = "Hello"

 

Example of concatenation:

Echo = "Hello"

Echo = Echo & "World!"

Risultato: Hello World!

 

Example:

A = 12*2

Echo = A

Result: 24

 

Text

Manages the editor on the fly.

Example, in the editor we have the value MyDate. We can replace it with today's date in the following way:

Text = replace(Text, MyDate, Date)

 

nCalc

We can change some settings of nCalc. Example to bring nCalc to the 1000 position of the screen:

nCalc.top = 1000


It is possible to create very complex applications in VbScript thanks to the support of nCalc, however, please refer to the Visual Basic Script guide that can be easily consulted on the Internet by searching with Google.

 

 

Contribute and Support Us

If you don't want to buy the PRO version of nCalc, but you want to contribute, because you think it's really useful, you can make a donation to info@beliceweb.it  through PayPal. Thanks in advance!