UGN Security Forums
My ProfileMember DirectoryLogin
Search our ForumsView our FAQView our Site Rules
View our CalendarView our Active TopicsGo to our Main Page

UGN Security Store
 

Network Sites UGN Security, Elite Web Gamers, Back of the Web, EveryDay Helper, VNC Web Design & Development
November
Su M Tu W Th F Sa
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30
Our Sponsors


Latest Postings
Useful PHP Functions & Code
by Gizmo
11/13/08 09:25 PM
UBBCode Tags
by Gizmo
11/13/08 09:25 PM
Bitten by my ISP
by ZER0_DECEPTION
10/25/08 01:56 AM
Topic Options
Rate This Topic
#17591 - 08/19/03 09:04 AM REALbasic question
loanbanker Offline
Junior Member

Registered: 03/05/02
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 = "" (changed so I can post)
PostTag = ""(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.

Top
Our Sponsors
Sponsor Our Sponsors

Sponsor Advertisements help keep UGN Security Online.



Support UGN Security by Purchasing our Sponsors Products.
Top  
#17592 - 08/19/03 08:46 PM Re: REALbasic question
SilentRage Offline
DollarDNS Owner

Registered: 03/04/02
Posts: 1273
Loc: OH, USA
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

Top
#17593 - 08/20/03 06:35 AM Re: REALbasic question
loanbanker Offline
Junior Member

Registered: 03/05/02
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.

Top
#17594 - 08/31/03 11:28 PM Re: REALbasic question
loanbanker Offline
Junior Member

Registered: 03/05/02
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.

Top
#17595 - 09/01/03 03:37 AM Re: REALbasic question
loanbanker Offline
Junior Member

Registered: 03/05/02
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.

Top



Featured Member
Registered: 11/17/07
Posts: 10
Forum Stats
6884 Members
44 Forums
10925 Topics
45702 Posts

Max Online: 677 @ 06/30/07 10:06 PM
Top Posters
Gizmo 6952
UGN Security 3980
§intå× 3252
IceMyst 1449
SilentRage 1273
Ice 1146
pergesu 1134
Infinite 1039
jonconley 954
Girlie 903
Newest Members
c0de M80, Bob, wir3dfr3ak, 2321, Amir-Turk
6883 Registered Users
Who's Online
0 registered (), 9 Guests and 11 Spiders online.
Key: Admin, Global Mod, Mod
Latest News
Required Reading Update...
by Gizmo
11/07/08 11:36 AM


Donate
  Get Firefox!
Get FireFox!