null as a valid data

new topic     » topic index » view thread      » older message » newer message

Robert, can you introduce null as a valid data, so that the following would
work?:

-- program
sequence string, test

global procedure testchars
atom nulltestchar
 if ( string[24] = 'f' ) then 
  test = dosomething(string[22]) 
 end if
 test = dosomething(atom)
end procedure -- testchars

function dosomething(sequence data)
  if ( data != null ) then puts(1,data&CRLF) end if
end function -- dosomething

string = "this is 21 chars long"
testchars
-- end program

Kat

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu