狂战传说希亚莉兹剧情:delphi stringreplace 运行时报错 'xx' is not a valid componet name

来源:百度文库 编辑:高考问答 时间:2024/05/05 23:51:52
代码
stringreplace(dbmemo1.Text,'name',name,[rfReplaceAll]);
'name' 是dbmemo1中的内容.name是变量它的值为数据库表中的字段name(文本)的值.通过编译,但运行时说'张三'is not a valid component name!
导致无法替换!求助如何使其替换成功!