The Daily Click ::. Forums ::. Klik Coding Help ::. Simple Text problems
 

Post Reply  Post Oekaki 
 

Posted By Message

BBalazs



Registered
  10/07/2004
Points
  41
12th November, 2004 at 08:38:12 -

How can you create an application that allows the creation of a simple txt file, by inputing lines that are added one after the other - First, we need an object that does not use any header. 2nd, we need that object to place enters where you assign (because the next line inputed by the user will come into the next line of the file). 3rd, we need to save on the hard drive.

Also, if possible, can we add 'tabs'? Somehow?

 
n/a

Tigerworks

Klik Legend

Registered
  15/01/2002
Points
  3882
12th November, 2004 at 08:51:52 -

The List object can save files as plain text. So can the edit object, and rich edit.

 
- Tigerworks

BBalazs



Registered
  10/07/2004
Points
  41
13th November, 2004 at 01:19:02 -

Yes, but how do you add lines (and tabs)? This was my problem with them... (though I haven't tried the list yet, so I'll see to it soon)

 
n/a

Tigerworks

Klik Legend

Registered
  15/01/2002
Points
  3882
13th November, 2004 at 07:17:15 -

Well in the list object you use the very secretive hidden feature which only few people know about: the "Add Line" action. In the edit object you can just add some text on the next line by inserting a new line character (Newline$ in MMF 1.5 build 117).

I don't know what you mean about tabs. Do you mean different columns, like a Listview? Or just tabs inserted in the text?

 
- Tigerworks

BBalazs



Registered
  10/07/2004
Points
  41
14th November, 2004 at 14:54:47 -

Tabs inserted into a text - like if I press the tab key whilst in notepad, I get some empty space, sort of like a... huge space.

 
n/a

Tigerworks

Klik Legend

Registered
  15/01/2002
Points
  3882
14th November, 2004 at 15:13:40 -

Edit objects can insert tab as long as Multiline is enabled. To use tabs in the expression editor you need to make a new string object and type a tab as its text.

 
- Tigerworks

BBalazs



Registered
  10/07/2004
Points
  41
15th November, 2004 at 09:24:36 -

Thanks! It's all clear now... Just one more question: The list object seems to have a limit of some characters per line. Can I extend that just a little bit somehow?

 
n/a

RapidFlash

Savior of the Universe

Registered
  14/05/2002
Points
  2712
15th November, 2004 at 17:54:58 -

No

 
http://www.klik-me.com
   

Post Reply



 



Advertisement

Worth A Click