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!

More than 255 characters in Pascal?

Status
Not open for further replies.
Jan 28, 2006
1
SE
Hi, I'm fairly new at Pascal, and I have two question. Is there a way for a variable to store more than 255 characters? I'm trying to build a program in which you can create .html pages, although I need to be able to input a text that is longer than 255 character.

My second question is how I do when I want all the indata to be saved as a .txt file, or a .html.

I would be really happy on how to do this, thanks in advance.

//Marcus

P.S Sorry for my bad English
 
well... it isn't posible to store in sa single variable more then 256(0..255) caracters....but you cand use arrays or even text files..

you can make an array that looks like this
frazes:array[1..200] of string; {the limit of the array you can set to how much you like}
in this array in each element of the array you put a fraze.. lets say until u type the "." caracter.

with txt files u can write the text u want to use in a text file and you read the first 256 caracters then the next and so on.

if you don't know how to write the program tell me and il give you an example
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top