Trouble with GetNetError Function
Posted: Thu 21. Oct 2010, 22:05
From the Help, GetNetError is a function which returns a double.
I cannot get an assignment to work so I made a test case.
I cannot get the following test case to compile:
double a;
void main()
{
a = GetNetError;
}
When I try to compile, I get an error:
ERR: Can't implicitly convert from 'GetNetEditor' to 'double&'.
Its amazing how things clear up after a night's sleep (!)
Thanks
Tom
__________________________________________
EDIT: FOUND MY OWN ANSWER:
Assignment is wrong. Must be:
a = GetNetError();
You MUST include the empty parenthesis.
(For some reason I thought when you called a func or sub, you did not use empty paren. Perhaps this works when you call a sub, however, it appears that it does not work when using a function.)
It is amazing how problems can become crystal clear after a night's sleep (!)
I cannot get an assignment to work so I made a test case.
I cannot get the following test case to compile:
double a;
void main()
{
a = GetNetError;
}
When I try to compile, I get an error:
ERR: Can't implicitly convert from 'GetNetEditor' to 'double&'.
Its amazing how things clear up after a night's sleep (!)
Thanks
Tom
__________________________________________
EDIT: FOUND MY OWN ANSWER:
Assignment is wrong. Must be:
a = GetNetError();
You MUST include the empty parenthesis.
(For some reason I thought when you called a func or sub, you did not use empty paren. Perhaps this works when you call a sub, however, it appears that it does not work when using a function.)
It is amazing how problems can become crystal clear after a night's sleep (!)