A
avkokin
Hello.
There is the variables V1 as Double and xC2 as string. I assignmenting
for it next expression:
xC2 = SourceTable.Rows(cmbFood1.ListIndex + 1).Cells(2).Range.Text
V1 = Left(xC2, Len(xC2) - 2)
V1 = CDbl(V1)
If the number of getting is not zero then all OK. But if the number
from cell of table is zero then I get the error "type mismatch".
Why and how can I recovery it? Thank you very much.
P.S. I can't use the function VAL because I have the numbers with
commas instead the numbers with dot (it's local).
There is the variables V1 as Double and xC2 as string. I assignmenting
for it next expression:
xC2 = SourceTable.Rows(cmbFood1.ListIndex + 1).Cells(2).Range.Text
V1 = Left(xC2, Len(xC2) - 2)
V1 = CDbl(V1)
If the number of getting is not zero then all OK. But if the number
from cell of table is zero then I get the error "type mismatch".
Why and how can I recovery it? Thank you very much.
P.S. I can't use the function VAL because I have the numbers with
commas instead the numbers with dot (it's local).