Valuelists

Archived from the Xataface Users forum.

fcc — Fri Apr 06, 2007 1:27 am

I was playing around with Dataface for a few of my own projects, and I kept running into this error which puzzled me at first.

In my valuelist.ini file I had:

[Responses]
Yes = “Yes”
No = “No”

When I used this vocabulary for a particular widget, I was met with the error on the function parse_ini_file() I realized that the Yes word is actually reserved and shouldn’t be used for a key in Dataface. Is there anyway around this?


shannah — Fri Apr 06, 2007 9:11 am

Hi Fong,

The workaround would be to use a different key:

http://ca.php.net/manual/en/function.parse-ini-file.php#61960

Perhaps use ‘y’ and ‘n’ instead of Yes and No

-Steve