Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Invalid Function, Count
Message
From
16/12/2019 15:17:21
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01672257
Message ID:
01672275
Views:
54
>>>Howdy all,
>>>
>>>Trying to take a character field and convert and then calculate against it. It's initially imported as a text delimited field:
>>>
>>>the data looks like: 23.34 or 35.87 etc...
>>>The data field is a character field.
>>>
>>>But when I attempt to perform a calculation, via val(stock_high) - val(stock-low), i receive the function argument invalid count (etc) error.
>>
>>Alltrim() the entries before converting to numeric.
>>
>>? vartype(" 23.42" && C
>>
>>Hank
>
>Hank, vartype() with double quotes always will return C.
>
>? vartype("     23.42")
>? vartype("23.42     ")
>? vartype("23.42")
>
Oops: brain fart. ;)
Previous
Reply
Map
View

Click here to load this message in the networking platform