🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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 ?
#5557
Author: Joachim
Date: Thu, 12 Apr 2001 14:15
16 lines
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 ?
#5493
Author: Joachim
Date: Mon, 23 Apr 2001 09:54
39 lines
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