countnikon
26th June 2007, 17:30
Good morning everybody.

With the code below, I get the following error:
Fatal Error: FUNCTION within function 'when.field.changes.tssma949.nust' not expected

I'm having a problem with the following code:

|****************************** field section **********************************
field.tssma949.nust:
when.field.changes:
get.cat.cls()

|****************************** choice section ********************************

|****************************** function section ********************************
function get.gat.cls()
{
table ttssma950

select *
from tssma950
where tssma950.engt = field.tssma949.engt
and tssma950.frmt = field.tssma949.frmt
and tssma950.nust = field.tssma949.nust
and tssma950.hrpw = field.tssma949.hrpw
selectdo
field.tssma949.pcat = tssma950.pcat
field.tssma949.pcls = tssma950.pcls
endselect
}

Thank you in advance.

countnikon
26th June 2007, 17:36
This is a bit of stupid and a newbie mistake on my part.

I forgot to put the function: before I declared the function.

Mods, if you want you can go ahead and delete this.

mark_h
26th June 2007, 17:42
It's okay - it can stay. We all make mistakes like this. :)