learn_ln6
18th January 2007, 08:56
hi all

before data save in main table i am using
main.table.io
before.write
if isspace(whinh901.clot) then
skip.io("")
endif

system given the standard message "record not saved"

please advice how to clear this message.
programe not given any message.

please help

thanks

mbdave
18th January 2007, 09:34
but better write the code in DAL, because a DAL must be already there hence its giving error.

bigjack
18th January 2007, 11:01
HI,

Use following code,

choice.update.db:
before.choice:
if isspace(whinh901.clot) then
choice.again()
endif


if you are interested in using DAL ,you can use following code in DAL,


function extern boolean method.is.allowed(long method)
{
on case method
case DAL_UPDATE:
if isspace(whinh901.clot) then
return(false)
endif
endcase
return(true)
}