VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

String Calculator

Ryan Kwok  (1 Submission)   String Manipulation   Visual Basic 3.0   Intermediate   Wed 3rd February 2021

This is a recursive function to calculate a string formula. For example: You have a formula like "3*((2+6)*2-2)/(2+2)". You just call the function to get the answer. Hope this is useful to somebody:)

Inputs
sFormula - string

Returns
return the result of the formula

Rate String Calculator (2(2 Vote))
String Calculator.bas

String Calculator Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters