Typecasting String as TPersistent Datafield
From: Bill Stevens (hajnshj_at_nowhere.com)
Date: 12/31/03
- Next message: Dave White: "Re: Blockread"
- Previous message: delphifan: "how can insert a file (word doc) to the end of the file(opened word doc)?"
- Next in thread: Craig Stuntz [TeamB]: "Re: Typecasting String as TPersistent Datafield"
- Reply: Craig Stuntz [TeamB]: "Re: Typecasting String as TPersistent Datafield"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 30 Dec 2003 23:28:41 -0500
Hello,
Is there anyway to typecast or 'trick' the compiler into accepting a string
as a Persistent TFieldName? I have about 30 values in a stringlist as such,
MYNAME=TableFieldName
MYFON=TableFieldName
.....
The 'Name' section of the stringlist will be used to search through a HTML
document and replace the located name with the Text in the associated table
field (represented in the 'Value' section).
Can I do something anywhere near this;
vName : String
StringList1.Text := StringReplace(
StringList1.Text, vName, (StringList2.Values[vName] as
TPersistentField).asString, [rfReplaceAll]);
All I need to do is get the value in the field - no changes or updates.
Hopefully this is a simple syntax question, I'd hate to have to come up with
a entirely different coding mechanism.
- Next message: Dave White: "Re: Blockread"
- Previous message: delphifan: "how can insert a file (word doc) to the end of the file(opened word doc)?"
- Next in thread: Craig Stuntz [TeamB]: "Re: Typecasting String as TPersistent Datafield"
- Reply: Craig Stuntz [TeamB]: "Re: Typecasting String as TPersistent Datafield"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|