note 111023 deleted from function.dbase-replace-record by cmb

From: Date: Sat, 06 Aug 2016 14:25:57 +0000
Subject: note 111023 deleted from function.dbase-replace-record by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-206226@lists.php.net to get a copy of this message
Note Submitter: rlundp at lunds dot us ---- It took me a while to figure this out, so even though this is near-obsolete, maybe it will be useful to someone else. I have a dBase file that contains a boolean value. I created a new row in the file with the boolean value at 0, and that worked without issues. But then I tried to set that value to 1, and it did not work. I tried 1, "1", true - all without success. Turns out that you need to use "Y" to set a boolean value to 1. When you load the row later and output it using var_dump, the value will show as integer with the value 1.

« previous php.notes (#206226) next »