Guidance
指路人
g.yi.org
Guidance Forums / Rapid-Q Basic / RichEdit problem

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. RichEdit problem
#756
Posted by: 2003-01-28 08:52:35
I'm fairly new to Rapid-Q and to a lesser extent to programming as well.

Anyway, on to my problem...

I have a QRICHEDIT on a form. It is there to display formatted text: verses from the New Testament one verse at a time.

I also have a text file. It contains, you may have guessed, the New Testament: one verse per line.

My program will search the file for the verse selected by the user in three ComboBoxes--but I digress.

My immediate problem is that I can't seem to get a single verse to display in the RichEdit. I can get the entire file in with:

MyRichEdit.LoadFromFile("MyTextFile.txt") but that's not what I want.

I'm sure there must be a way, and I'm sure that someone here knows how to do it.

Please help me.

Craig
Message2. QFileStream
#757
Posted by: guidance 2003-01-28 09:43:10
QFileStream has ReadLine method:
http://h.ods.org/_scripts/file.php?f=2439&r=2330

Tutorial:
http://h.ods.org/_scripts/file.php?f=2190&r=2330
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Thu 2024-3-28  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0