Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here





I have a component property that has a twidestring class.
If i write mycomponent.footer := 'Test'; i get an error saying that there's incompatibility between twidestrings and strings.

I have been searching an an answer but cannot find anything.

How do i need to write the text portion of the footer?


RE: Twidestring

Is it possible for you to post MyComponent's interface section, specifically the declaration of MyComponent, and what footer is declared as

Assuming something like:



uses xx, yy, zz;

   TWideString = XXXX;//What is this declared as?

   MyComponent = class(TComponent)
      footer: TWideString;

if XXX resolves to 'WideString' then you can simply typecast your value to a TWideString (Delphi/Pascal is a "Strongly Typed Language" so even though footer is a TWideString which is a WideString they are not assignment compatible with other WideStrings because it is declared as a separate 'type' - you can avoid this by simply declaring footer as WideString and drop the reference to TWideString), or as stated do the type casting:


mycomponent.footer := TWideString('Test'); 

if the declaration is more complex, then posting the code will tell us how to assign a value to footer.

RE: Twidestring

I am going to contact the developer. I am trying the EMS VLC export component. I am trying to export my database to an excel spreadsheet and inside the component, you can add a footer and header property. When i click on the property and add text, it does not stick. It keeps disappearing. So i tried using code instead but i run into the twidestring/String conflict.

Thanks for your input..
Appreciate it.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close