Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Sat Sep 21, 2019 3:54 am
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Word Processing Program in RB book by Jerry Lee Ford, Jr.
PostPosted: Sun Mar 21, 2010 9:56 pm 
Offline

Joined: Fri Sep 30, 2005 1:53 pm
Posts: 914
Location: Philadelphia, PA
After RB fixes the EditField problem, two lines in the program (chapter 9) will still give a syntax error:

SourceFile.OpenStyledEditField TextWindow.edfTextArea

TargetFile.SaveStyledEditField edfTextArea

Here are modified versions of those lines that seem to work:

B1 = TextWindow.edfTextArea.Open (SourceFile)

B2 = edfTextArea.Save (TargetFile, True)

In addition you'll need to DIM B1, B2 As Boolean.

Barry Traver


Top
 Profile  
Reply with quote  
 Post subject: Re: Word Processing Program in RB book by Jerry Lee Ford, Jr
PostPosted: Sun Mar 21, 2010 11:01 pm 
Offline

Joined: Thu Oct 05, 2006 11:45 pm
Posts: 1002
Location: Sol:Planet Earth:North America:California
Is this using the latest version of RB as of today, 2010R1? I have found that where OpenStyledEditField is concerned the conversion that RB does for EditFields doesn't work. I still use the editfield in my older projects and just ignore the warnings.

_________________
This message made with 100% recycled pixels.
MacBook CD2.0/2GB/OSX 10.6.8 / REAL Studio 2010R1 Pro


Top
 Profile  
Reply with quote  
 Post subject: Re: Word Processing Program in RB book by Jerry Lee Ford, Jr
PostPosted: Mon Mar 22, 2010 4:43 am 
Offline

Joined: Fri Sep 30, 2005 1:53 pm
Posts: 914
Location: Philadelphia, PA
Sorry. I should have mentioned that I was using RB2009r5 (the Windows version, if that makes any difference).

For the Word Processing program by Ford, I used the version that came on the CD-ROM that came with the book. (I did not type it in by hand.)

I didn't know that you could ignore the warnings and use EditField anyway (at least for now?).

Like you, however, I also found that "where OpenStyledEditField is concerned the conversion that RB does for EditFields doesn't work" (I also had problems with SaveStyledEditField not working).

I don't really entirely know what I'm doing, but I found that after I let RB "resolve" the EditField problem, when I changed the lines that had said OpenStyledEditField and SaveStyledEditField to what I indicated in a previous post, things seemed to be working okay: no problems compiling Ford's program in the RB IDE, and my experiments with using "Open" and "Save" with .rtf files (again, I'm using Windows, not Mac or Linux) worked fine.

Barry Traver


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group