cancel
Showing results for 
Search instead for 
Did you mean: 

I can not sum %

CarlesCostaMun
Participant
0 Kudos
75

Hi everybody,

I have this problem:

totalDtos is a double and oEdit.value = "2.00000" (note that is "2.00000" and not 2.00000 without "")

totalDtos = CType(oEdit.Value, Double)

Then, totalDtos = 20000.0

Why?

I'm trying to catch a percent user field. I don't understant why oEdit.value is a String and doesn't convert to double

Thanks

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member689126
Active Contributor
0 Kudos

Hi Carles Costa

I have just tested it but i am getting totalDtos = 2.0 after the double conversion

Regards

Arun

CarlesCostaMun
Participant
0 Kudos

Thanks Arun,

the correct is oEdit.string and not value.

It works with .string

Thanks