Calling Functions Within Functions
Calling Functions Within Functions
This is my script for my function:
void both.AlpineFarm(int Id1, int ID)
{
ter = Alpine_Farm[Id1 = input.Id1].Id1;
tep = Alpine_Farm[Id1 = input.Id1].ID;
if (ter = null)
{
thisapp.add.AlpineFarm(ter);
}
else if (ter != null)
{
thisapp.edit.AlpineFarm(tep);
}
}
When I try to save it, it gives me the following error message:
Encountered "." at line 7, column 20.
Was expecting one of:
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
But I can save it as:
void both.AlpineFarm(int Id1, int ID)
{
ter = Alpine_Farm[Id1 = input.Id1].Id1;
tep = Alpine_Farm[Id1 = input.Id1].ID;
if (ter = null)
{
thisapp.edit.AlpineFarm(ter);
}
else if (ter != null)
{
thisapp.edit.AlpineFarm(tep);
}
}
Below I have supplied the script for both functions edit.AlpineFarm & add.AlpineFarm
void add.AlpineFarm(int Id1)
{
openUrl("https://creator.zoho.com/jpiajr/compost-tracker-supreme/form-perma/Alpine_Farm/Id1=" + input.Id1, "Same window");
}
void edit.AlpineFarm(int ID)
{
openUrl("https://creator.zoho.com/jpiajr/compost-tracker-supreme/Alpine_Farm/record-edit/Alpine_Farm_View/" + input.ID, "Same window");
}
Any ideas on why this is happening?
Also I have allowed access for support.