home *** CD-ROM | disk | FTP | other *** search
- on CDXUpdateList
- global CDXresultlist, WhichINXfieldnamesList, WhichINXfieldlengthlist, CDrecordsfound, CDpageselect
- add(CDXresultlist, [0, 0, 0, 0, 0, 0])
- repeat with j = 1 to count(WhichINXfieldnamesList)
- set fname to getAt(WhichINXfieldnamesList, j)
- set flength to getAt(WhichINXfieldlengthlist, j)
- DBGetFieldByName(fname)
- set fieldcontent to the result
- if fname = "CD_ISSUE" then
- if (value(chars(fieldcontent, 5, 6)) < 1) or (value(chars(fieldcontent, 5, 6)) > 12) then
- nothing()
- else
- set months to list("Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec")
- set monthnumber to value(chars(fieldcontent, 5, 6))
- set newmonthtext to getAt(months, monthnumber) && chars(fieldcontent, 3, 4)
- set fieldcontent to newmonthtext
- end if
- end if
- set datalength to the number of chars in fieldcontent
- if datalength < flength then
- repeat with g = 1 to flength - datalength
- set fieldcontent to fieldcontent & " "
- end repeat
- end if
- if datalength > flength then
- set fieldcontent to chars(fieldcontent, 1, flength)
- end if
- setAt(getAt(CDXresultlist, count(CDXresultlist)), j, fieldcontent)
- end repeat
- end
-