for example: 8 - 9 = -1
i want it to be : 8 - 9 = 1

i want to subtract a lower number from a higher number and the result will be a positive number and it will display on a Label.

Try the Abs() function.

commented: as simple as that +13

thanks pritaeas

Can you also help me with this

TEXT will not accept the number zero and negative numbers.

Although this code snippet is in VB.NET, am sure it will guide you to a solution.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.