Re: Logical fields in MySQL, field mapping from VFP to MySQL
From: Christian Ehlscheid (ehlscheid-no-spam_at_edv-ermtraud.de)
Date: 03/17/04
- Next message: Christian Ehlscheid: "Re: Logical fields in MySQL, field mapping from VFP to MySQL"
- Previous message: Ook: "Re: Memo Update"
- In reply to: Ook: "Re: Logical fields in MySQL, field mapping from VFP to MySQL"
- Next in thread: Christian Ehlscheid: "Re: Logical fields in MySQL, field mapping from VFP to MySQL"
- Reply: Christian Ehlscheid: "Re: Logical fields in MySQL, field mapping from VFP to MySQL"
- Reply: Anders Altberg: "Re: Logical fields in MySQL, field mapping from VFP to MySQL"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 17 Mar 2004 17:38:38 +0100
Hello,
yes .. it's the best option ..
it also integrates good into the user interface since checkboxes can be
bound to numeric types ..
we currently use numeric types exclusively instead of logical .. cause we
have to target different backends ..(foxpro, oracle, mssql and mysql) and
only FoxPro has a native boolean type
the MsSQL odbc driver is also smart enought to convert BIT to boolean in
FoxPro .. but with all other backends you're lost ..
the new cursoradapter is also of no help in this context ..
cause this unfortunately doesn't work:
DEFINE CLASS oSomeAdapter AS CursorAdapter ..
SelectCmd = 'SELECT someNumeric FROM someTable WHERE someCondition'
Cursorschema = 'someNumeric L'
ENDDEFINE
you'll get error 1543: Type conversion required by the DataType property
for field 'someNumeric' is invalid.
this is a bit odd since it isn't a big problem to convert a numeric into a
boolean ..
e.g. lbBool = (numeric=0) & like it is handled in C
Regards
Christian
"Ook" <outlookexpress@nospam@embertsdotcom> schrieb im Newsbeitrag
news:uIEWXjCDEHA.3348@TK2MSFTNGP11.phx.gbl...
> So would you agree that logical values should be replaced with numeric 1/0
> values instead? Everything else looks pretty straight forward.
- Next message: Christian Ehlscheid: "Re: Logical fields in MySQL, field mapping from VFP to MySQL"
- Previous message: Ook: "Re: Memo Update"
- In reply to: Ook: "Re: Logical fields in MySQL, field mapping from VFP to MySQL"
- Next in thread: Christian Ehlscheid: "Re: Logical fields in MySQL, field mapping from VFP to MySQL"
- Reply: Christian Ehlscheid: "Re: Logical fields in MySQL, field mapping from VFP to MySQL"
- Reply: Anders Altberg: "Re: Logical fields in MySQL, field mapping from VFP to MySQL"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|