哥伦比亚大学在哪个州:delphi stringreplace 运行时报错 'xx' is not a valid componet name

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