回 帖 发 新 帖 刷新版面

主题:请问这段代码有问题吗?

请问这段代码有问题吗?运行后提示“操作符/操作类型不匹配”!
local findstr,oldrecord
oldrecord=recno()
set exact off
do case
case thisform.findtype.value=1
   findstr=alltri(thisform.findkey.value)+"$xm"
case thisform.findtype.value=2
   findstr=alltri(thisform.findkey.value)+"$scbh"
endcase
sele txxx
set filt to &findstr
go top
do while .not.eof()
  txxx.refresh
  thisform.windowstate=1
  if messagebox("是此人吗?",4+32,"离退休信息核对")=6
    exit
  else
    skip
    txxx.refresh
  endif
  thisform.windowstate=0
enddo
if eof()
  messagebox("未找到此人吗?",4+32,"离退休信息核对")
  go oldrecord
endif
set filt to 
txxx.refresh
thisform.release

回复列表 (共6个回复)

沙发

自己添加断点进行调试
学习编程连最起码的调试都不会,这怎么行!

板凳

出错时,点“挂起”,到调试器,跟踪窗口,会有指示具体出错语句。并可查看变量值。

3 楼

AAAAAAAAAAAAAAAAAAAAAAAAAA

4 楼


set filt to &findstr

SET Filtler to 应为一逻辑表达式 你的貌似一个字符串。

5 楼

case thisform.findtype.value=1
   findstr=alltri(thisform.findkey.value)+"$xm"

从上面两行看,第一行 thisform.findtype.value=1 说明它是数值型,而第二行的函数里却引用了一个数值型数据,因而报错。

6 楼


[url=http://www.worldsmileshop.com/nike-air-jordan-shoes-c-15.html/]cheap Nike air Jordan shoes [/url]
[url=http://www.worldsmileshop.com/air-jordan-5-v-shoes-c-15_18.html/]cheap Air Jordan 5 (V) shoes [/url]
[url=http://www.worldsmileshop.com/air-jordan-6-vi-shoes-c-15_19.html/]cheap Air Jordan 6 (VI) shoes [/url]
[url=http://www.worldsmileshop.com/air-jordan-7-vii-shoes-c-15_76.html/]cheap Air Jordan 7 (VII) shoes [/url]
[url=http://www.worldsmileshop.com/air-jordan-8-viii-shoes-c-15_77.html/]cheap Air Jordan 8 (VIII) shoes [/url]
[url=http://www.worldsmileshop.com/air-jordan-9-ix-shoes-c-15_78.html/]cheap Air Jordan 9 (IX) shoes [/url]
[url=http://www.worldsmileshop.com/air-jordan-10-x-shoes-c-15_79.html/]cheap Air Jordan 10 (X) shoes[/url]
[url=http://www.worldsmileshop.com/air-jordan-11-xi-shoes-c-15_80.html/]cheap Air Jordan 11 (XI) shoes [/url]
[url=http://www.worldsmileshop.com/air-jordan-12-xii-shoes-c-15_81.html/]cheap Air Jordan 12 (XII) shoes [/url]
[url=http://www.worldsmileshop.com/air-jordan-13-xiii-shoes-c-15_82.html/]cheap Air Jordan 13 (XIII) Shoes [/url]
[url=http://www.worldsmileshop.com/nike-dunk-high-men-shoes-c-50_65.html/]cheap Nike Dunk High Men Shoes [/url]
[url=http://www.worldsmileshop.com/nike-dunk-low-men-shoes-c-50_66.html/]cheap Nike Dunk Low Men Shoes [/url]
[url=http://www.worldsmileshop.com/nike-dunk-mid-men-shoes-c-50_67.html/]cheap Nike Dunk Mid Men Shoes [/url]
[url=http://www.worldsmileshop.com/nike-dunk-high-women-shoes-c-50_68.html/]cheap Nike Dunk High Women Shoes [/url]
[url=http://www.worldsmileshop.com/nike-dunk-low-women-shoes-c-50_69.html/]cheap Nike Dunk Low Women Shoes [/url]
[url=http://www.worldsmileshop.com/cole-haan-air-conner-shoes-c-70_71.html/]cheap Cole Haan Air Conner shoes [/url]
[url=http://www.worldsmileshop.com/cole-haan-air-conner-boots-c-70_72.html/]cheap Cole Haan Air Conner Boots [/url]
[url=http://www.worldsmileshop.com/mens-gucci-low-top-shoes-c-55_73.html/]cheap Men's Gucci Low Top Shoes [/url]
[url=http://www.worldsmileshop.com/mens-gucci-middle-top-shoes-c-55_74.html/]cheap Men's Gucci Middle Top Shoes [/url]
[url=http://www.worldsmileshop.com/mens-gucci-high-top-shoes-c-55_75.html/]cheap Men's Gucci High Top Shoes [/url]
[url=http://www.worldsmileshop.com/prada-mens-low-shoes-c-13_14.html/]cheap Prada Men's Low Shoes [/url]
[url=http://www.worldsmileshop.com/prada-high-men-shoes-c-13_20.html/]cheap prada high men shoes [/url]
[url=http://www.worldsmileshop.com/prada-mens-slipper-c-13_58.html/]cheap Prada Men's Slipper [/url]
[url=http://www.worldsmileshop.com/supra-skytop-c-3_4.html/]cheap Supra Skytop  shoes[/url]
[url=http://www.worldsmileshop.com/supra-shoes-c-3.html/]cheap Supra shoes [/url]
[url=http://www.worldsmileshop.com/radii-footwear-c-7.html/]cheap RADII Footwear shoes[/url]
[url=http://www.worldsmileshop.com/420top-c-7_8.html/]420TOP [/url]
[url=http://www.worldsmileshop.com/christian-louboutin-pumps-c-21_36.html/]cheap Christian Louboutin Pumps shoes[/url]
[url=http://www.worldsmileshop.com/christian-louboutin-evening-c-21_43.html/]cheap Christian Louboutin Evening [/url]
[url=http://www.worldsmileshop.com/christian-louboutin-sandals-c-21_33.html/]cheap Christian Louboutin Sandals [/url]
[url=http://www.worldsmileshop.com/christian-louboutin-boots-c-21_40.html/]cheap Christian Louboutin Boots[/url]

我来回复

您尚未登录,请登录后再回复。点此登录或注册