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::TEnterHa ndleForm(T Component* Owner)
: TForm(Owner)
{
}
//------------------------ ---------- ---------- ---------- ---------- ---------- -
void __fastcall TEnterHandleForm::Button1C lick(TObje ct *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->T ext.c_str( );
}
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::TEnterHa
: TForm(Owner)
{
}
//------------------------
void __fastcall TEnterHandleForm::Button1C
{
// 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->T
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.