BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

getting text from EditBox?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage)
View previous topic :: View next topic  
Author Message
peter
Guest





PostPosted: Wed Dec 17, 2003 3:40 pm    Post subject: getting text from EditBox? Reply with quote




hi, how can I get the text that is typed into an Edit Box placed
into a char array or char * variable? For example, I have an Edit
Box where the user should type the path to a file. I need to output
that to a file, using write(). is there a better way? if not, then
how do i do this? thanks

Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Wed Dec 17, 2003 5:59 pm    Post subject: Re: getting text from EditBox? Reply with quote




"peter" <peterna (AT) attglobal (DOT) net> wrote


Quote:
I have an Edit Box where the user should type the path to a file.
I need to output that to a file, using write().

AnsiString str = Edit1->Text;

fwrite(str.c_str(), str.Length(), 1, myfile);
or
fwrite(str.c_str(), sizeof(char), str.Length(), myfile);


Gambit



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.