Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

[ or .) needed

Status
Not open for further replies.

Dubbemiah

Programmer
Apr 2, 2005
6
US
I am trying to do the following expression and receive an error:

damage := (str*2.5)-(.5*marmor);

and i get an error like this: [ or .) needed.

Can anyone please help?

Thanks!
 
Str is a procedure/function in Pascal.

How are your variables defined anyhow - is one of them a table?
 
I read that I can't use Integer datatype for decimals, and after I changed the decimals to whole numbers, I stopped getting the errors.

Str didn't give me any errors, however I am having problem with some of my if statements , and maybe that could be the reason.

Thanks for your help, Glenn!

Brandon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top