User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Pascal and Delphi section within the Software Development category of DaniWeb, a massive community of 397,790 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,410 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Pascal and Delphi advertiser:

code illiterate - add text from 5 TEdit to 1

Join Date: Dec 2006
Posts: 4
Reputation: i8Spooky is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
i8Spooky's Avatar
i8Spooky i8Spooky is offline Offline
Newbie Poster

Re: code illiterate - add text from 5 TEdit to 1

  #3  
Jan 2nd, 2007
Originally Posted by Lord Soth View Post
Hi,

try this :
 edit6.text := edit1.text + edit2.text + edit3.text + edit4.text + edit5.text;
or even beter this :
 edit6.text := '(url=' + edit2.text + '(b)' + edit4.text + '(/b)(/url)';

I used ( instead of square brackets on purpose because we use BB tag on the forum and it confuses it. On your code write them with square brackets.

Loren Soth


*** THANKS LOREN you save my donkey. (Equus asinus)

I was trying similar, but nowhere near it, and could have gone on for ever. Like edit6.text := (edit1) + (edit2) + (edit3) + edit4) + (edit5);

And don't you hate it when Delphi says:- EXPECTED ':' but FOUND ';' So, you put in ':' and it stops and says expected ';'

I'm a bit (lot) rusty beginner. Did my projects from looping together code snippets on the Net some years ago. Usual midi player, wav player, text pad, rich text pad, save bookmarks, and on and on. Got some from PC Plus also.

Did this too -- shame on me....
procedure TMainForm.Button1addClick(Sender: TObject);
var
   ebinput1, ebinput2 : string;
begin

codecombine.text := '[.u.r.l.=' + 'ebinput1'  + '.[.b.].' +  'ebinput2' + '[/.u.r.l].';
end;
I searched every bookstore in Perth, WA and could not find a book on Delphi programming. Even the local agents didn't have an actual copy of Delphi 5, only an empty box.

Been using Delphi since about ver. 2, and what have we learned. Nick it off the Net, because someone has done it all before.

Will try it when I get off the Net, but it looks good, even more the second one, no need to show the other TEdits.
:: The only code I know is - Close; ::
Reply With Quote  
All times are GMT -4. The time now is 5:31 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC