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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Invalid number

Status
Not open for further replies.

brewerdude

IS-IT--Management
Sep 8, 2003
472
US
Why am I getting "Invalid number" from the compiler with this code??

agent_type is declared as a string.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if agent_type = "SPV"
transmit "hta fna ira ola cnda fita lna mwa tdd spv^M"
else
transmit "hta fna ira ola cnda fita lna mwa tdd agn^M"
endif
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
For string variables, you should use the strcmp command (in your case, if strcmp agent_type "SPV") or its related commands for comparisons.


aspect@aspectscripting.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top