Quantcast
Viewing all articles
Browse latest Browse all 83164

[Builder] Zapisywanie zawartości Label do pliku .txt

Witam.

Chcę zapisać zawartość Label do pliku .txt funkcją SaveToFile ().

void __fastcall TForm1::FormClose(TObject *Sender, TCloseAction &Action)
{
    Label1 -> Caption -> SaveToFile ("c/Timer/plik.txt");
}

Wyskakuje mi "Pointer to structure required on left side of -> or ->

Gdy stworzę wskaźnik:

    AnsiString Content = Label1 -> Caption;
    AnsiString *ContPoint = &Content;
    Label1 -> *ContPoint -> SaveToFile ("c/Timer/plik.txt");

To wyskakuje mi Member identifier expected oraz 'ContPoint' is assigned a value that is never used

Co zrobić w takiej sytuacji?


Viewing all articles
Browse latest Browse all 83164

Trending Articles