
-----------------------------------
Tallguy
Thu Apr 23, 2009 7:51 am

records
-----------------------------------
so doing a records assignment, this is the section i'm having problems with. i have to sort the records, but when i run it i get this error
"operands of comparison operators must be scalars, sets or strings"

so i've tried strint, intstr, still getting the error

suggestions?



type sportsRecord :
    record
        name : string
        team : string
        position : string
        age : string
        salary : string
        rating : string
    end record


var place : array 1 .. 500 of sportsRecord

for last : 1 .. 100
    for i : 1 .. 99
        if place (i) > place (i + 1) then%