Please help!!!
Can anybody please tell me what data type to use to save RTFText from a rich text format box and if posible to let me know where to find info about PervasiveSQL 2000 data types?
Are you using Btrieve or ODBC to insert/read the data? If you're using ODBC, I would probably suggest a LongVarChar or a LongVarBinary. If you're using Btrieve, I would suggest a variable length file, in terms of Btrieve, and then store the RTF data in the variable portion.
That being said, I would almost store the RTF in it's own file and then place a link to the filename in the Btrieve file.
info@mirtheil.com
Custom VB and Btrieve development.
Certified Pervasive Developer
Certified Pervasive Technician
LongVarChar would be used to store strictly character data. If there's a chance that binary data would be stored, even if it's something like a carriage return or other non-printable character, you should use LongVarBinary.
As far as using the two data types, there wouldn't be a difference. I would still strongly recommend using a link in the Btrieve file and storing the RTF in it's own file.
info@mirtheil.com
Custom VB and Btrieve development.
Certified Pervasive Developer
Certified Pervasive Technician
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.