Jump to content

Archived

This topic is now archived and is closed to further replies.

esm

Yes/No in the table

Recommended Posts

I have several Yes/No fields ( they are truely Yes/No with No being the defaul value ).

 

What is the correct way to code the value in the table. Yes/No or 1/0?

Share this post


Link to post
Share on other sites

I would use 0 or 1 as it would be easy for me to compare and findoutr. Now in the case of yes or no I have to do a strcmp everytime and find out if the result is o or 1.

 

Best would be to use 0 or 1

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.