Code: Select all
'find highest values
for !i=1 to 5
!r=0
for !j=1 to 5
if table_a(!i,1)>=table_a(!j,1) then
!r=!r+1
endif
next
if !r=5 then exitloop
endif
next
table_a.setfillcolor(!i,1) yellowModerators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt
Code: Select all
'find highest values
for !i=1 to 5
!r=0
for !j=1 to 5
if table_a(!i,1)>=table_a(!j,1) then
!r=!r+1
endif
next
if !r=5 then exitloop
endif
next
table_a.setfillcolor(!i,1) yellowCode: Select all
!max = 1e-10
!r=0
for !i=1 to 5
!val = @val(table_a(!i,1))
if !val >= !max then
!r = !i
!max = val
endif
next
Users browsing this forum: No registered users and 2 guests