Ariane Soft PPL2 Pocket Programming DataMite
  #1  
Old 06-20-2009, 01:47 PM
gpic gpic is offline
Junior Member
 
Join Date: Jun 2009
Posts: 5
Default Memo - load text file

Hi.
I'm put on the form a button and Memo. To clicked LBM on the button and wrote next code:
Quote:
Edit_LoadFromFile(MyMemo$, AppPath$ + "ansi.txt");
MyMemo$ -the name of Memo component.

Run this example on the windows and click on the button,but text not loaded=( In ansi.txt wrote only word
Quote:
Hi
I'm try also erase AppPath$ from code...
Help me=)

p.s. I'm to use ppl 1.53.
p.p.s. Sorry for my bad English.

Last edited by gpic; 06-20-2009 at 01:50 PM.
Reply With Quote
  #2  
Old 06-20-2009, 03:08 PM
Nicknack Nicknack is offline
Senior Member
 
Join Date: Nov 2006
Location: Germany
Posts: 527
Default

there is a mistake in swapi.ppl, it isn't up to date in Edit_LoadFromList which is used by your Edit_LoadFromFile.
replace the line ListToStr(slist$, "\n", "", s$); in Edit_LoadFromList to s$=ListToStr(slist$, "\n", "", "");. now your code should work correctly, at least if your input lines (in ansi.txt) are longer than one character
you find swapi.ppl in PPL\RUNTIME\LIB folder.
Reply With Quote
  #3  
Old 06-21-2009, 03:00 PM
gpic gpic is offline
Junior Member
 
Join Date: Jun 2009
Posts: 5
Default

Nicknack
Thank you for the tip! It's works

Last edited by gpic; 06-21-2009 at 03:28 PM.
Reply With Quote
  #4  
Old 06-22-2009, 03:31 PM
kornalius kornalius is offline
Administrator
 
Join Date: Apr 2006
Posts: 551
Default

Hi,

You would need a RichText memo to be able to change selected text font or color. PPL only use a regular memo text field.
__________________
Regards,
Alain Deschenes
ArianeSoft Inc.
http://www.arianesoft.ca
Reply With Quote
  #5  
Old 06-23-2009, 12:38 AM
gpic gpic is offline
Junior Member
 
Join Date: Jun 2009
Posts: 5
Default

Quote:
Originally Posted by kornalius View Post
Hi,

You would need a RichText memo to be able to change selected text font or color. PPL only use a regular memo text field.
Thank you Alain.
Have you any example use of RichText ?

p.s. you wrote a little in another thread
Reply With Quote
Reply

Tags
memo

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:44 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
Copyright (c) ArianeSoft Inc.
Copyright © 2009 www.ppl-lang.com - All rights reserved
Web Design by BR Web Consulting Ltd