home *** CD-ROM | disk | FTP | other *** search
- on CDXWordSearching
- global CDXWordsearchdata, CDXSomething, CDXWhichTypesList, CDXtypenamesList
- CDXmakeuppercase()
- set querystring to "UPPER(CD_PROD)='" & CDXWordsearchdata & "'"
- DBQuery(querystring)
- set NoGood to 1
- set CDXSomething to 0
- set NoFoundis to 1
- if the result = 0 then
- set resultfound to 1
- repeat while resultfound = 1
- put EMPTY
- CDXAnimate()
- if count(CDXWhichTypesList) > 0 then
- repeat with z = 1 to count(CDXWhichTypesList)
- set SecondList to getAt(CDXWhichTypesList, z)
- if DBGetFieldByName(getAt(SecondList, 1)) <> getAt(SecondList, 2) then
- set NoGood to 0
- exit repeat
- end if
- end repeat
- end if
- if NoGood = 1 then
- set CDXSomething to 1
- put "found:" && NoFoundis into field "CDnoFound"
- set NoFoundis to 1 + NoFoundis
- CDXUpdateList()
- else
- set NoGood to 1
- end if
- DBSkip(1)
- if the result <> 0 then
- set resultfound to 0
- end if
- end repeat
- end if
- if CDXSomething = 0 then
- put EMPTY into field "CDNothingfound"
- put "Nothing found for:" into line 1 of field "CDNothingfound"
- put ".................................................................." into line 2 of field "CDNothingfound"
- put "Name:" && CDXWordsearchdata into line 3 of field "CDNothingfound"
- repeat with t = 1 to count(CDXWhichTypesList)
- set Whichfield to getAt(getAt(CDXWhichTypesList, t), 1)
- repeat with a = 1 to count(CDXtypenamesList)
- if getAt(getAt(CDXtypenamesList, a), 1) = Whichfield then
- set Whichfield to getAt(getAt(CDXtypenamesList, a), 2)
- exit repeat
- end if
- end repeat
- put Whichfield & ":" && getAt(getAt(CDXWhichTypesList, t), 2) into line t + 3 of field "CDNothingfound"
- end repeat
- set the boxType of member "CDNothingfound" to #adjust
- set the textSize of member "CDNothingfound" to 12
- set the margin of member "CDNothingfound" to 2
- set the border of member "CDNothingfound" to 1
- if the machineType > 200 then
- set the textFont of member "CDNothingfound" to "arial"
- else
- set the textFont of member "CDNothingfound" to "Geneva"
- end if
- set the textStyle of line 1 of member "CDNothingfound" to "bold"
- repeat with t = 3 to the lineCount of member "CDNothingfound"
- set the textStyle of word 1 of line t of member "CDNothingfound" to "bold"
- set the textStyle of word 2 of line t of member "CDNothingfound" to "plain"
- end repeat
- updateStage()
- set the castNum of sprite 34 to the number of member "CDNothingfound"
- set the loc of sprite 34 to point(30, 134)
- set the castNum of sprite 35 to the number of member "NothingGraphic"
- set the loc of sprite 35 to point(217, 156)
- updateStage()
- end if
- end
-