Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Trespassers will be shot. Survivors will be SHOT AGAIN!


devel / comp.lang.clarion / Old Clarion 4 App

SubjectAuthor
o Old Clarion 4 Appsusang1952

1
Old Clarion 4 App

<2287c7e8-1edc-454f-b84d-f31e74ced133n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=9901&group=comp.lang.clarion#9901

  copy link   Newsgroups: comp.lang.clarion
X-Received: by 2002:a05:620a:470d:b0:67d:d8a8:68c6 with SMTP id bs13-20020a05620a470d00b0067dd8a868c6mr5049932qkb.717.1650225329436;
Sun, 17 Apr 2022 12:55:29 -0700 (PDT)
X-Received: by 2002:a25:e78e:0:b0:641:d314:aa5e with SMTP id
e136-20020a25e78e000000b00641d314aa5emr6908550ybh.108.1650225329233; Sun, 17
Apr 2022 12:55:29 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.clarion
Date: Sun, 17 Apr 2022 12:55:29 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=72.15.110.17; posting-account=PHC9rgoAAADzAZ6YTkSJEARzo43J86p3
NNTP-Posting-Host: 72.15.110.17
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <2287c7e8-1edc-454f-b84d-f31e74ced133n@googlegroups.com>
Subject: Old Clarion 4 App
From: susang1...@gmail.com (susang1952)
Injection-Date: Sun, 17 Apr 2022 19:55:29 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 81
 by: susang1952 - Sun, 17 Apr 2022 19:55 UTC

I have an old Clarion App I wrote years ago. I was making a change to part of a process to change which records get chosen. Any help is appreciated. I can't seem to get it to function correctly anymore.

The routine is below, however, what I am trying to do is only use Rounds that have a ROU:PlayDayType of 'R'. But still need to be sorted descending date and descending points.

The process is a routine to calculate an average score of the Best Scores of Last 6 scores. The RoundsKey is : Rou:ClubID, -Rou:date, -Rou:PointsMade, Rou:PlayDayType

This is the routine:

FindPointsAverage routine

SET(PLA:KeyClubID)
LOOP until Access:Players.Next()
clear(Rou:Record)
ROU:CLUBID = PLA:CLUBID
Rou:date=Today() + 1
ROU:PointsMade = 100
Counter# = 0
Tally$ = '''

SET(ROU:KeyRounds,ROU:KeyRounds)
Loop until Access:Rounds.Next()
If Rou:CLUBID <> PLA:CLUBID
break
END !If player

If Counter# < 6 AND ROU:PlayDayType = 'R'
My:Score = ROU:PointsMade
My:LastDate = Rou:date
Add(ScoreQ)

elsif Counter# >= 1000
Relate:Rounds.Delete(0)
end
Counter# += 1
end ! loop rounds
if Counter# > 6
Counter# = 6
end !if counter

SORT(ScoreQ,-My:lastdate)
GET(ScoreQ,1)
Pla:LastPLAYDate = My:LastDate
SORT(SCOREQ,-MY:SCORE)
If Counter#
SORT(ScoreQ,-my:score)
case Counter#
of 1
EndScores# = 1
of 2 to 3
EndScores# = 2
of 4 to 5
EndScores# = 3
of 6 !to 8
EndScores# = 4

!**************Changed to best 4 of 6 on !April 15th #August 2, 2019
END ! case
LOOP J# = 1 TO EndScores#
GET(ScoreQ,J#)
Tally$ += My:Score
END ! j loop
IF ENDSCORES# = 1
PLA:PointsAverage = (TALLY$+PLA:StartingPoints)/2
ELSE
PLA:PointsAverage = TALLY$ / ENDSCORES#

END

END !if counter
Access:Players.Update()
FREE(ScoreQ)
END ! main loop
POST(Event:CloseWindow)

exit
! ------------------------------------------------------------------------------------

Thanks Susan G


devel / comp.lang.clarion / Old Clarion 4 App

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor