MCPcopy Create free account
hub / github.com/MaxBelkov/visualsyslog / LoadPosition

Function LoadPosition

sourcecommon/utils.cpp:694–715  ·  view source on GitHub ↗

---------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

692}
693//---------------------------------------------------------------------------
694void LoadPosition(TForm * f, int * param, int count)
695{
696 TMYIniFile * p = NULL;
697 try
698 {
699 // open in read only mode
700 p = new TMYIniFile(szPositionFile, false, false);
701 LoadFormPosition(p, f);
702 // ������� �������������� ���������, ���� ����
703 if( param && count>0 )
704 {
705 char str[20];
706 for(int i=0; i<count; i++)
707 {
708 wsprintf(str, "PARAM%d", i+1);
709 param[i] = p->ReadInteger(AnsiString(f->Name).c_str(), str, 0);
710 }
711 }
712 }
713 catch(...) {}
714 delete p;
715}
716//---------------------------------------------------------------------------
717void LoadPosition(TForm * f, double * param, int count)
718{

Callers

nothing calls this directly

Calls 4

LoadFormPositionFunction · 0.85
ReadIntegerMethod · 0.45
ReadFloatMethod · 0.45
ReadStringMethod · 0.45

Tested by

no test coverage detected