Thread View: borland.public.cppbuilder.database.ado
2 messages
2 total messages
Started by Joachim
Thu, 12 Apr 2001 14:15
change width of dBase-Field at runtime ?
Author: Joachim
Date: Thu, 12 Apr 2001 14:15
Date: Thu, 12 Apr 2001 14:15
16 lines
1291 bytes
1291 bytes
Hy, is it possible to change the fieldwidth of an StringField at runtime ? I have now a width of 8 and want to change at runtime to a width of 20. !! the current data in the fields must be saved! I tried =>> "Field->DisplayWidth = 20" I tried "EditRange... " --> but nothing happends! Anyone an idea ? Thanks.. Joachim
Re: change width of dBase-Field at runtime ?
Author: Joachim
Date: Mon, 23 Apr 2001 09:54
Date: Mon, 23 Apr 2001 09:54
39 lines
1870 bytes
1870 bytes
YES, I found the trick!!!!!!!!!!! ==> The easiest way is to use the SQL ALTER TABLE statement as described in the Local SQL help file in your BDE directory. The other way is to use the BDE API function DbiDoRestructure. See the examples at www.borland.com/devsupport/bde/bdeapiex. Joachim, "Joachim" <jschwiening@tas.de> schrieb im Newsbeitrag news:3ad5b85c_1@dnews... > Hy, > > is it possible to change the fieldwidth of an StringField at runtime ? > I have now a width of 8 and want to change at runtime to a width of 20. > !! the current data in the fields must be saved! > > I tried =>> "Field->DisplayWidth = 20" > I tried "EditRange... " > > --> but nothing happends! > > Anyone an idea ? > > Thanks.. > > Joachim > > >
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads