Recent

Author Topic: Error operator is not overloaded  (Read 811 times)

hellohello234

  • Newbie
  • Posts: 3
Error operator is not overloaded
« 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?


marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11459
  • FPC developer.
Re: Error operator is not overloaded
« Reply #1 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