A bug in CRecordset for Fox 2.6?
Lior Messinger -- lior@trendline.co.il Thursday, May 09, 1996 Platform: VC++ 4.0, Win NT, Fox 2.6 Hi, I hope someone had come across this already, and can confirm or give me a workaround. I use Fox 2.6 database, and trying to use Crecordset for it. I create the class for the table using the famous ClassWizard, but when I try to Update, I'm thrown out with an "Invalid Precision" message. I tracked it down to the SQLBindParameters, and saw that MFC delivers 255 for the precision (which is, I think, field length), when the maximal field length is 254. Any ideas? Any info? Thanks a lot, Lior Messinger, Fundtech.
Dan Kirby -- dkirby@accessone.com Saturday, May 11, 1996 [Mini-digest: 2 responses] See article Q132960 in the Microsoft Developer Knowledgebase (http://www.microsoft.com/kb). I searched on "mfcdatabase foxpro" and hit the article. You just need to change the fourth argument of the RFX_Text call. --dan -----From: "Frederic Steppe"You have to modify the call to RFX_Text, which defaults to 255 chars max size. Just code the fourth parameter (nMaxLength) to 254 or less. Frederic Steppe (frederics@msn.com)
| Вернуться в корень Архива |