User Tools

Site Tools

coding:vb:snippets Snippets

Working with data structures

Detecting DBNull in strongly typed datasets

If you get an exception when checking a datatable item for DBNull, then change your syntax. E.g:

function css_filewrapper($mediatype, $files=array()){
return array(
'files' ⇒ $files,
'mediatype' ⇒ $mediatype,
'encapsulate' ⇒ $mediatype != 'all',
'encapsulationPrefix' ⇒ '@media '.$mediatype

* Prints the @media encapsulated default styles of DokuWiki

coding/vb/snippets.txt · Last modified: 2019/07/09 00:04 by stigzler