I need to write a function that sets the format of a given number based upon a given Format.For example:
Given format=000.00%
Given number=12345
Then the function should change it to 123.45%
other examples:
Given format Given No. Result
0.0 34 3.4
0,000 1234 1,234
0% 1 1%
0.0000 12345 1.2345
0,000.0000 123 1,234.0000
Any idea how can this be done in VB6.0? Thanks
Given format=000.00%
Given number=12345
Then the function should change it to 123.45%
other examples:
Given format Given No. Result
0.0 34 3.4
0,000 1234 1,234
0% 1 1%
0.0000 12345 1.2345
0,000.0000 123 1,234.0000
Any idea how can this be done in VB6.0? Thanks