Valuelists

A place for users and developers of the Xataface to discuss and receive support.

Postby 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?
fcc
 
Posts: 7
Joined: Wed Dec 31, 1969 5:00 pm

Postby 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

--
Steve Hannah
@shannah78 (on twitter)
sjhannah.com blog
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 34 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved