IT SOLUTIONS
Your full service technology partner! 
-Collapse +Expand
Delphi
Search Delphi Group:

Advanced
-Collapse +Expand Delphi To/From
To/FromCODEGuides
-Collapse +Expand Delphi Store
PRESTWOODSTORE

Prestwood eMagazine

December Edition
Subscribe now! It's Free!
Enter your email:

   ► MB LobbyPascal and Delphi Coding BoardDelphi News / Other Topic   Print This     

Using Strings in commands

Using Strings in commands in Delphi News / Other topic (part of our Pascal and Delphi Coding group).

Quick Search: Strings   commands   Using Strings   Using Strings commands  
gordon
 (Inactive)
-- USA
I have command

Document.Information..text

where is a dynamically created string.

How can I cast this string into the command so that, for instance, if was mickey then I could make the command say

document.information.mickey.text:= 'mouse'

Any thoughts?

Thanks for now

Gordon ALLAN
gordon@allanhome.net
 Posted 20 years ago (Thread Starter)
Comment Quote
About gordon -Collapse +Expand
Visit Profile
Inactive member.
Member does not subscribe to this thread.
Email Not Verified!
Once email is verified, we will review and approve the account.
Web Presence Hidden.
Once above is taken care of, full Profile content will display including back links, about me, my message, custom Profile html, social networking links, message board signature, company profile, etc.

Post ID #5312, 3 replies
Thread Started 2/17/2002 3:56:00 AM
View Counter=1764
Last Reply Posted 2/18/2002 11:16:00 AM)
Location=-- USA 
Joined=21 years ago   MB Posts=23  
Moderator
Mike Prestwood
Prestwood IT
Prestwood IT office in Citrus Heights, CA
Can you post more of the code for me? Then I can take a look.

--
Mike Prestwood
Prestwood IT Solutions

 Posted 20 years ago
Comment Quote
About Mike Prestwood -Collapse +Expand
Visit Profile
Approved member.
Member subscribes to this thread with a verified email.
About Mike Prestwood

Mike Prestwood is a drummer, an author, and creator of the PrestwoodBoards online community. He is the President & CEO of Prestwood IT Solutions. Prestwood IT provides Coding, Website, and Computer Tech services. Mike has authored 6 computer books and over 1,200 articles. As a drummer, he maintains play-drums.com and has authored 3 drum books. If you have a project you wish to discuss with Mike, you can send him a private message through his PrestwoodBoards home page or call him 9AM to 4PM PST at 916-726-5675 x205.

Web Presence
Facebook, Prestwood IT Facebook page -- fan page. (Visit Me)
Twitter, Follow Prestwood IT on Twitter. (Visit Me)
LinkedIn, Prestwood IT company page on LinkedIn. (Visit Me)
YouTube, Prestwood IT YouTube Channel (Visit My Channel)
Website, My drum website where I sell my drum books. (http://www.play-drums.com)

Post ID #5328 (Level 1.1)  Reply to 5312
Thread Started 2/18/2002 7:53:00 AM
View Counter=2
Location=Prestwood IT office in Citrus Heights, CA 
Joined=22 years ago   MB Posts=1410   KB Posts=1805   KB Comments=53   BLOG, Topics=4  
gordon
 (Inactive)
-- USA
I meant to say that Document is of type Variant if that makes a difference
 Posted 20 years ago (Thread Starter)
Comment Quote
About gordon -Collapse +Expand
Visit Profile
Inactive member.
Member does not subscribe to this thread.
Email Not Verified!
Once email is verified, we will review and approve the account.
Web Presence Hidden.
Once above is taken care of, full Profile content will display including back links, about me, my message, custom Profile html, social networking links, message board signature, company profile, etc.

Post ID #5313 (Level 1.2)  Reply to 5312
Reply Posted 2/17/2002 4:01:00 AM
Location=-- USA 
Joined=21 years ago   MB Posts=23  
Most Recent Post
gordon
 (Inactive)
-- USA
Hi Mike

===========
var
Document, vservice: Variant;
count: integer;
begin
Document := CoDOMDocument.Create;
Document.load('c:\info.xml');
Document.element.subelement.text:= 'mouse';
===========
in this case I have a list dynamically created variables (i do not know what they will be in advance) that are names of subelement

Say I have a string with the value 'mickey' and I want to run the command

Document.element.mickey.text:= 'mouse';

Is this possible?

Thanks in advance

Gordon ALLAN
gordon@allanhome.net
 Posted 20 years ago (Thread Starter)
Comment Quote
About gordon -Collapse +Expand
Visit Profile
Inactive member.
Member does not subscribe to this thread.
Email Not Verified!
Once email is verified, we will review and approve the account.
Web Presence Hidden.
Once above is taken care of, full Profile content will display including back links, about me, my message, custom Profile html, social networking links, message board signature, company profile, etc.

Post ID #5333 (Level 1.3)  Reply to 5312
Reply Posted 2/18/2002 11:16:00 AM
Location=-- USA 
Joined=21 years ago   MB Posts=23  

Revive Thread!

Add a comment to revive this old thread and make this archived thread more useful.

Write a Comment...
Full Editor
...
Sign in...

If you are a member, Sign In. Or, you can Create a Free account now.


Anonymous Post (text-only, no HTML):

Enter your name and security key.

Your Name:
Security key = P163A1
Enter key:
Icon: A Post    Thread    Idea    Important!    Cool    Sad    No    Yes    Includes a Link...   
Thread #5312 Counter
1764
Since 4/2/2008
Go ahead!   Use Us! Call: 916-726-5675  Or visit our new sales site: 
www.prestwood.com


©1995-2022 Prestwood IT Solutions.   [Security & Privacy]