Previous Thread
Next Thread
Print Thread
Rate Thread
#17591 08/19/03 06:04 AM
Joined: Mar 2002
Posts: 69
L
Junior Member
OP Offline
Junior Member
L
Joined: Mar 2002
Posts: 69
OK I know this is a VB forum but its closer to RB then the other forums.

As an example program to start learning RB I have been working on an editor. Here lies the problem. When I debug I get an error saying this method or property doesnt exist.


dim PreTag as string
dim PostTag as string
Pretag = "<xhtm>" (changed so I can post)
PostTag = "</xtml>"(changed so I can post)
HtmlField.SelText = PreTag + Htmlfield.SelText + PostTag


When I get the error HtmlField is highlighted. Any help is greatly appreciated! Thanks.


Your mind is fine. Reality is what needs adjusting.
#17592 08/19/03 05:46 PM
Joined: Mar 2002
Posts: 1,273
DollarDNS Owner
Offline
DollarDNS Owner
Joined: Mar 2002
Posts: 1,273
The HtmlField object does not have a property called "SelText" - so the error says. Be sure that you have a version of RealBasic that supports SelText. Cause there was a version released where some properties/methods were not supported, such as SelText"

Also, you might want to be sure HtmlField is a EditField object.


Domain Registration, Hosting, Management
http://www.dollardns.net
#17593 08/20/03 03:35 AM
Joined: Mar 2002
Posts: 69
L
Junior Member
OP Offline
Junior Member
L
Joined: Mar 2002
Posts: 69
Thanks SR,

You pointed me right to the cause. The version was fine but like an idiot I was working with the wrong item. I'll get the hang of this. Thanks again.


Your mind is fine. Reality is what needs adjusting.
#17594 08/31/03 08:28 PM
Joined: Mar 2002
Posts: 69
L
Junior Member
OP Offline
Junior Member
L
Joined: Mar 2002
Posts: 69
I am trying to code the Open menu item for the html editor practice program in a book Im reading. Here is what is happening.

Dim fi as FolderItem
Dim hwin as HtmlWindow
fi = GetOpenFolderItem("text")
If fi <> Nil then
hWin = New HtmlWindow
fi.OpenStyledEditField hwin.HtmlField
hWin.document = fi
hWin.Title = fi.Name
End if

When I compile this the word document is highlighted and I get a message saying "this method is protected. It can only be called from within its class.

Ok now Im a newbie at this so I don't know if Im giving enough information to get any help. What I dont get is that I have followed the books instructions to a tee. I have read the help file associated with the error message. Is there a way I could perhaps unprotect the method? Or is there something Im missing? lost.

any help is greatly appreciated

P.S the book im working out "Michael Swaine REALbasic for MACINTOSH" says it covers versions 3.5, 4, 4.5, 5! Is it possible I need to do something different since Im using 5.2.1? really lost here.


Since Im on the topic of RB. I picked this up as my first programming language. I have an idea for a project I would like to create. Would you suggest I stick with the practice programs the books walk me through to get a feel and hang of RB or should i start my project as I feel comfortable. In other words should I start on say the interface of the project as I learn more about the coding? whats your suggestion? The project would allow me as a loan officer to have a database of clients, fill out the 1003 form on the computer, process the file and send out letters all in one program. Sort of a point of sale program for a broker. I have seen other programs that do this. I figure I want to make one that works for me and then distribute it freely for other brokers/salespersons to use! Anyways, I hope a little background on the project helps you help me!

I understand this is a VB forum but Im only off by one letter! Again thanks for the help.

loanbanker


Your mind is fine. Reality is what needs adjusting.
#17595 09/01/03 12:37 AM
Joined: Mar 2002
Posts: 69
L
Junior Member
OP Offline
Junior Member
L
Joined: Mar 2002
Posts: 69
Problem solved. The method was protected by default and my nifty little book decided to skip the part telling me to uncheck where it says protected.

Thanks anyways guys.


Your mind is fine. Reality is what needs adjusting.

Link Copied to Clipboard
Member Spotlight
Posts: 30
Joined: June 2002
Forum Statistics
Forums41
Topics33,840
Posts68,858
Average Daily Posts1
Members2,176
Most Online3,253
Jan 13th, 2020
Latest Postings
Where and how do you torrent?
by danni75 - 03/01/24 05:58 AM
Animation,
by JohanKaariainen - 08/15/19 01:18 AM
Blackbeard.....
by Gremelin - 10/03/18 07:02 PM
my old account still exists!
by Crime - 08/10/18 02:47 PM
Okay WTF?
by HenryMiring - 09/27/17 01:45 AM
The History Thread...
by Gremelin - 08/11/17 12:11 PM
My friend NEEDS your HELP!
by Lena01 - 07/21/17 12:06 AM
I'm having fun with this guy.
by gabithompson730 - 07/20/17 01:50 AM
I want to upgrade my phone
by gabithompson730 - 07/20/17 01:49 AM
Doom 3
by Cyrez - 09/11/14 08:58 PM
Amazon Gift Card Generator/KeyGen?te
by Gecko666 - 08/22/14 09:21 AM
AIM scene 99-03
by lavos - 09/02/13 08:06 AM
Planetside 2
by Crime - 03/04/13 07:10 AM
Beta Testers Wanted
by Crime - 03/04/13 06:55 AM
Hello Everyone
by Gremelin - 02/12/12 06:01 PM
Tracfone ESN Generator
by Zanvin Green - 01/18/12 01:31 PM
Python 3 issue
by Testing - 12/17/11 09:28 PM
tracfone airtime
by Drache86 - 07/30/11 03:37 AM
Backdoors and the Infinite
by ZeroCoolStar - 07/10/11 03:52 AM
HackThisZIne #12 Releaseed!
by Pipat2 - 04/28/11 09:20 PM
gang wars? l33t-wars?
by Gremelin - 04/28/11 05:56 AM
Consolidate Forums
by diggin2deep - 04/21/11 10:02 AM
LAN Hacking Noob
by Gremelin - 03/12/11 12:42 AM
Top Posters
UGN Security 41,392
Gremelin 7,203
§intå× 3,255
SilentRage 1,273
Ice 1,146
pergesu 1,136
Infinite 1,041
jonconley 955
Girlie 908
unreal 860
Top Likes Received
Ghost 2
Crime 1
Ice 1
Dartur 1
Cyrez 1
Powered by UBB.threads™ PHP Forum Software 7.7.5