Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

VB6 Type Conversions


jcsnider
 Share

Recommended Posts

Alright I have never had a problem like this so I have very little insight on this.

In the past if I had a string (str) with a value of "1.4" I could multiply it by lets say a long like i which could equal 2 like this.

```
dim str as string
dim i as long
str = "1.4"
i = 2
i = i * str
```
Now on my computer it will handle it just fine and i will end up equaling 3 which is 2.8 rounded up because it is a long.

On some other computers they are not as smart and error out. I have however attempted to use Csng and Clng along with other functions but all without success. Any ideas from you all?
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...