How can I better replace SET fields in DB? To transform one SET field into few BOOLEAN fields?
SET fields
SET fields
I know about Delphi restrictions with SET fields 
 
How can I better replace SET fields in DB? To transform one SET field into few BOOLEAN fields?
			
									
									
						How can I better replace SET fields in DB? To transform one SET field into few BOOLEAN fields?
Re: SET fields
Please describe the problem in more details.
			
									
									
						Re: SET fields
I have SET field:
Using SET is not recommended with Delphi by DevArt Team
The problem solution is replacing one SET field to few BOOLEAN fields
Is it best way to workaround?
			
									
									
						Code: Select all
CREATE TABLE set_test(myset SET('red','blue','green'));The problem solution is replacing one SET field to few BOOLEAN fields
Code: Select all
CREATE TABLE set_test(red BOOLEAN, blue BOOLEAN, green BOOLEAN);Re: SET fields
We don't say that we don't recommend to use SET fields anywhere.
We say that Delphi does not support the SET field type, and this type is mapped to TStringField, and you can work with SET fields as with strings.
There are various solutions - all depends on your project, architecture, aims and requirements.
			
									
									
						We say that Delphi does not support the SET field type, and this type is mapped to TStringField, and you can work with SET fields as with strings.
There are various solutions - all depends on your project, architecture, aims and requirements.