Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jun 4th, 2008, 12:31 PM   #1
Daz
Newbie
 
Join Date: Jun 2008
Posts: 1
Rep Power: 0 Daz is on a distinguished road
Convert tcaption to pansichar

I'm new to Delphi; and I'm trying to pass in the text attribute of a tedit to a function; so I need to do this conversion.
Daz is offline   Reply With Quote
Old Sep 22nd, 2008, 10:07 PM   #2
eNathan
Newbie
 
Join Date: Aug 2007
Posts: 5
Rep Power: 0 eNathan is on a distinguished road
Re: Convert tcaption to pansichar

Quote:
Originally Posted by Daz View Post
I'm new to Delphi; and I'm trying to pass in the text attribute of a tedit to a function; so I need to do this conversion.
I don't feel like fireing up Delphi right now to test this.. but I'm 90% sure this would work:

procedure bla..
var
Converted: String;
Begin
Converted := edit1.text;
TheFunction(PAnsiChar(Converted));
End;

Happy coding!
__________________
I know: Delphi, PHP, HTML, CSS, XML, MySQL
Read my radically thought-provoking blog:eNathan.com
Website Design: BlueLineWebDesign.net
“Intelligence without ambition is a bird without wings.” - Salvador Dal�*
"Imagination is more important than knowledge." - Albert Einstein
eNathan is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
convert image sequence to quicktime movie rwm Java 10 Nov 28th, 2007 11:12 AM
convert to int sayu C++ 12 Nov 14th, 2006 2:26 AM
How to convert from any base number system to any base in TrueBasic? linzi53 Other Programming Languages 4 Oct 30th, 2005 7:45 AM
Could anyone please convert this into assembly ? oxyi Assembly 9 Mar 13th, 2005 5:37 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 4:02 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC