Type Mismatch Errors Follow
I'm new to using Commander.
I have a scale sending a file to a folder in one task. Another task then senses the file, reads it and prints a label. The single field of data in the file is sourced directly for the value of one field in the label. Another field in the label uses that data for a calculation for it's value. I get a type mismatch error with the following code for that calculation:
Dim Price, Weight
Price = CDbl(Format.NamedSubStrings("UnitPrice").Value)
Weight = CDbl(Format.NamedSubStrings("ScaleWeight").Value)
Value = Price * Weight
The error is <Line4: : Type mismatch: 'CDbl'>
Any help is much appreciated.
Please sign in to leave a comment.