Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

logical values, if and else

Status
Not open for further replies.

shilpashah

Technical User
Jun 11, 2002
1
US
suppose my database in paradox has a field for gender, with male and female . now i need to denote them by 0 and 1 respectively, how do i do it.

eg how does the function of if and else work.

thanks
 
Make the field a Short Integer and set the picture value to "0,1". On your data entry form, make the field a radio button with values of 0 and 1 respectively, then change the text labels to Male and Female (depending on which one is 1 and which is 0).

Mac
Mac :)

"Do not delve too deeply in the arts of your enemy and so become ensnared by them"

langley_mckelvy@cd4.co.harris.tx.us
 
IF (statement that can be true or false)
THEN (do something if true)
ELSE (do something else if false)
ENDIF

By using NOT in the IF statement you can reverse the effect if you need to.

Mac :)

"Do not delve too deeply in the arts of your enemy and so become ensnared by them"

langley_mckelvy@cd4.co.harris.tx.us
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top