Hi,

I have this:

void __fastcall TERDmarker::LecERDClick(TObject *Sender)
{

    LecERD->Picture = *pct; //LecERD->Execute();
}
//---------------------------------------------------------------------------



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

void __fastcall TERDmarker::openimage21Click(TObject *Sender)
{
    TPicture * pct = new TPicture;

    pct->LoadFromFile("C:\Users\Yassar\Desktop\vpbmp");

   //   LecERD->Picture = pct;
}

What i am trying to do is, get openimage2click to open an image and save it to pct......
then pass the pct data into the LedERDclick.....i dont know how to pass the info and so on :D

any help or information would be great

Thank you

My only guess would be: LecERDClick(this) but you'd probably be better off asking whoever wrote this.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.