Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get text from a label

Status
Not open for further replies.

LuckyLuke

Programmer
Mar 28, 2001
188
0
0
NL
Hiya,

I try to make a programm which recuires to retrieve text from a form. I can't get my programm to get the text from the form. I tried getwindowtext, etc. but nothing works... It's just a simple lable. I know it is possible and I know you guys know how to do it, I'm not long in API yet, so please help me ;)

Lucky
 
Hi

I think you can use GetDlgItemText() to retrieve the text from a label.

Good luck
 
Hi,

Its great finally someone responds to this threat ;-), but now I have a new problem, how on earth do I use this command, I tried to search for it, but I can't find anything which gives examples and so...

LuCkY
 
What language are you programming in? I might be able to give you an example of how to use the above.
 
Hi,

I'm programming in Visual Basic. If this is a big problem, you can give it to me in C++ aswell and I'll get the hang of it (I hope) ;-)

Sorry for this late reply, but I was away for a few days.

LuCkY
 
In C++ an universall method for get label text is GetWindowText what gets the caption from a window. Every controls on the forms and the forms also are windows. John Fill
1c.bmp


ivfmd@mail.md
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top