Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Text Box Lenght

Status
Not open for further replies.

RoccoJay

Programmer
Jul 14, 2009
2
US
I'd like to know how to lenghten a text box after a program is already finished. I use "User-Defined Database".

For example:

Type RecipeData
RecipeName as string * 15
etc.
End Type

How can lenghten that Recipe field to 25?

 
I'm not sure what you mean by
after a program is already finished
You've finished writing it?

I'm also not sure if you want to increase the length of the string in your User Type you've created (which would be to change the * 15 to * 25), alter a textbox or lengthen the max length of a field in a database.

HarleyQuinn
---------------------------------
Carter, hand me my thinking grenades!

You can hang outside in the sun all day tossing a ball around, or you can sit at your computer and do something that matters. - Eric Cartman

Get the most out of Tek-Tips, read FAQ222-2244: How to get the best answers before posting.

 
If your string can change length then one also has to wonder why it is defined as a fixed length string in the first place ...
 
If your database is based on user-defined data types and there is already data in the database you can't alter the lengths of the strings without losing your data.

For example, if you increase the recipe length by 10 bytes it'd shift all the other fields along by 10 bytes and you'd most likely get 'Out of memory' when trying to read the file.

- Andy
___________________________________________________________________
If you think nobody cares you're alive, try missing a couple of mortgage payments
 
You may, however, convert the data by defining a new UDT. Open the existing data file and read/save to the new.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top