Kingsto88
12th March 2007, 06:21
MY DAL LOOKS LIKE THIS

#include <bic_dal>

table ttccom899 | Items

function extern long tccom899.item.is.derived(long has_changed)
{
return(true)
}

function extern long tccom899.item.is.valid(long has_changed)
{
if tccom899.item = "NULL" and has_changed then
|dal.set.error.message("tccom0001")
|* Purchase Price must be greater than zero
return(false)
endif
return(true)
}

BUT WHEN I COMPILE IT GIVES ERROR 'Only statements expected in sections'
WHAT MUST I DO NOW? WHAT DID I MISSED?

thanks and regards

Kingsto88
12th March 2007, 06:39
Hi,

I removed all the functions and left

#include <bic_dal2>
table ttccom899

When i compile, I still get the same message.
What is wrong and missed out? can someone please advise me.

thanks and regards,

Kingsto88
12th March 2007, 08:01
Hi,

found the answer.
The program script type must be DAL. Previously I set it to UI with database handling. That is why I could not compile.

Thanks and regards,