Lazarus

Free Pascal => Beginners => Topic started by: hellohello234 on June 05, 2021, 04:10:28 pm

Title: Error operator is not overloaded
Post by: hellohello234 on June 05, 2021, 04:10:28 pm
Hello! For a school project I needed to program a tool that calculates the average of weighted numbers. I wrote the code below, and I don't know why I get an error and how to fix it. It says: Error: operator is not overloaded: "Ansistring" * "Ansistring". I'm a beginner with this, can someone help me out?

Title: Re: Error operator is not overloaded
Post by: marcov on June 05, 2021, 04:26:19 pm
You can't multiply strings. You have to convert them to a numeric type first.
TinyPortal © 2005-2018