[INTERFACE]
DIALOG, "Запись данных в ячейку таблицы Гугл Таблицы", 464, 158;
STATIC, "Столбец (A = 0, B = 1, C = 2 ...)", 4, 4, 156, 20;
EDIT, 196, 4, 100, 20, int X;
STATIC, "Ряд (1 ряд = 0, 2 ряд = 1, 3 ряд = 2 ...)", 4, 28, 188, 20;
EDIT, 196, 28, 100, 20, int Y;
STATIC, "Значение", 4, 52, 52, 20;
EDIT, 60, 52, 236, 20, unknown Z;
COMBO, "Текст""Формула или инструкция", 300, 52, 152, 80, int FI;
STATIC, "Комментарий", 4, 80, 72, 20;
EDIT, 80, 80, 372, 20, unknown Comment;
BUTTON_OK, "Принять", 244, 104, 100, 20;
BUTTON_CANCEL, "Закрыть", 352, 104, 100, 20;
[END]

[APPEARANCE]
COLOR =120, 100, 140;
SIZE_X = 14;
SIZE_Y =4;
[END]

[INFO]
[ENDL]>>X>>" - ">>Y>>" = ">>Z>>[ENDL]>>Comment
[END]

[ASSOC_VAR]
X=0;
Y=0;
Z="Данные";
FI=0;
Comment=;
[END]

[GLOBAL_VAR]
int KML_GoogleSheets=0;
int Size_FillGoogleSheets=-1;
[END]

[FUNCTION_BODY]
function(int x, int y, string z, int fi)
{
  if (Size_FillGoogleSheets==-1)
  {
  Size_FillGoogleSheets=1000;
  global new int CN_GoogleSheets[2][Size_FillGoogleSheets];
  global new int FI_GoogleSheets[Size_FillGoogleSheets];
  global new string Values_GoogleSheets[Size_FillGoogleSheets];
  }
  if (KML_GoogleSheets>=Size_FillGoogleSheets)
  {
  new int tCN_GoogleSheets[2][Size_FillGoogleSheets];
  new int tFI_GoogleSheets[Size_FillGoogleSheets];
  new string tValues_GoogleSheets[Size_FillGoogleSheets];
    for (int d=0; d<KML_GoogleSheets; d++)
    {
    tCN_GoogleSheets[0][d]=CN_GoogleSheets[0][d];
    tCN_GoogleSheets[1][d]=CN_GoogleSheets[1][d];
    tFI_GoogleSheets[d]=FI_GoogleSheets[d];
    tValues_GoogleSheets[d]=Values_GoogleSheets[d];
    }
  delete CN_GoogleSheets;
  delete FI_GoogleSheets;
  delete Values_GoogleSheets;
  Size_FillGoogleSheets=Size_FillGoogleSheets+1000;
  global new int CN_GoogleSheets[2][Size_FillGoogleSheets];
  global new int FI_GoogleSheets[Size_FillGoogleSheets];
  global new string Values_GoogleSheets[Size_FillGoogleSheets];
    for (d=0; d<KML_GoogleSheets; d++)
    {
    CN_GoogleSheets[0][d]=tCN_GoogleSheets[0][d];
    CN_GoogleSheets[1][d]=tCN_GoogleSheets[1][d];
    FI_GoogleSheets[d]=tFI_GoogleSheets[d];
    Values_GoogleSheets[d]=tValues_GoogleSheets[d];
    }
  delete tCN_GoogleSheets;
  delete tFI_GoogleSheets;
  delete tValues_GoogleSheets;
  }
CN_GoogleSheets[0][KML_GoogleSheets]=x;
CN_GoogleSheets[1][KML_GoogleSheets]=y+1;
FI_GoogleSheets[KML_GoogleSheets]=fi;
Values_GoogleSheets[KML_GoogleSheets]=z;
KML_GoogleSheets++;
}
[END]

[CALL]
(X, Y, Z, FI)
[END]