Link to home
Start Free TrialLog in
Avatar of crims
crims

asked on

Lvalue Required borland C++ builder

sorry if i am unclear... i don't have much experience in C++, maybe 8 months, really don't know much about classes.
what i am trying to do.. .is get the text from a EditBox when i push a button(lets call it button1) and store it in a variable.

//---------------------------------------------------------------------------

#include <vcl.h>
#pragma hdrstop

#include "Unit1.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TEnterHandleForm *EnterHandleForm;
//---------------------------------------------------------------------------
__fastcall TEnterHandleForm::TEnterHandleForm(TComponent* Owner)
        : TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TEnterHandleForm::Button1Click(TObject *Sender)
{
 // below is the code, the error is now telling me "Lvalue required"
/*   not sure if it matters, but when i click on the "EditBox" it takes me to the function for the edit box (so i can code it)
but if there's no code (hence i didn't code anything in the edit box) the function just dissapears.
*/
  char buffer[40];
  buffer[0] = '\0';
  buffer = EditBoxForPersonsHandle->Text.c_str();

}
ASKER CERTIFIED SOLUTION
Avatar of Jase-Coder
Jase-Coder

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial