| | |
Incompatible Types TString and TCaption when using memos
Please support our Pascal and Delphi advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved |
•
•
Join Date: Jul 2009
Posts: 19
Reputation:
Solved Threads: 0
Hi, i am trying to add Label captions and Combobox text values to a memo when the button is clicked, and keep recieving the error 'Incompatible Types TString and TCaption' when i try to add values from labels and comboboxes
Im using the code like this:
i need to know how i can get around this problem and how can i make values appear on the same line in the memo
for example i need Memo2 with a blank line after, then memo 3 with a blank line after, and then Label1.Caption and Edit1.Text on the same line in the memo.
Im using the code like this:
Pascal and Delphi Syntax (Toggle Plain Text)
Memo1.Lines.AddStrings(Memo2.Lines); Memo1.Lines.AddStrings(Memo3.Lines); Memo1.Lines.AddStrings(Edit1.Text); Memo1.Lines.AddStrings(Label1.Caption);
i need to know how i can get around this problem and how can i make values appear on the same line in the memo
for example i need Memo2 with a blank line after, then memo 3 with a blank line after, and then Label1.Caption and Edit1.Text on the same line in the memo.
Last edited by revski; Oct 19th, 2009 at 8:51 am.
![]() |
Similar Threads
- java help needed - incompatible types (Java)
- Unexpected Type/Incompatible Types (Java)
- Incompatible Types? (Java)
- error: incompatible types in assignment (C)
- error: incompatible types in assignment (C)
- "Incompatible Types" Error In an IP Routing Program (Java)
Other Threads in the Pascal and Delphi Forum
- Previous Thread: IF and ELSE procedures
- Next Thread: Estimate PGF1.3 - a debugger-formater of struct. errors in source codes Pascal+Delphi
Views: 526 | Replies: 1
| Thread Tools | Search this Thread |
Tag cloud for Pascal and Delphi





