Hi David,

I agree with you and your frustrations with the help file.  I understand why
you say what you do about it.

ok; I'm working on the wiki article. see it's second half (published as a
separate article) for concrete examples showing code.  I will add your
problem as the basis of an example; it's a good one.

the first half has links to object oriented programming tutorials and
explanations.

 I never thought of defining terms; what terms do you think need defining?

thanks.

Chip


-----Original Message-----
From: David [mailto:eleph...@tele2.no] 
Sent: Saturday, January 16, 2010 2:57 PM
To: gw-scripting@gwmicro.com
Subject: Re: Braille Table question

Chip,
I already have been reading your WIKI stuff, even befre my privious posting.

Sure, by time it will have the potential of being of use. As for my
particular project, though, it didn't really help me out, or I wouldn't have
bothered the list with my problem. And as to the manual, I read it forward,
backward, and if ever possible sideways, to see if I could figure out the
whole thing. :)

May be I haven't really been able to tell what I want to do. Basically, this
is what I am after:

Dim CurBrlTab
CurBrlTab = 'And here is where I am stuck...
Speak "You are currently using " & CurBrlTab

I just got your message, so haven't really had time to try your lines of
code yet. And if anyone else has anything to add on, I am pure ears. I am
rather new to the objects, collections, properties, and methods business; so
still trying to learn. What the WIKI really should have taken care of, would
be to in a more clear way, by use of illustrations, explain these terms, and
help people like me, straighten them up a bit. You know, it doesn't make
sense if I give you a screw-driver, a pound of screws, 500 nuts, and a bag
of washers - and then expect you to be able to repair (let alone construct)
your own car. And that is what I find the manual often does. :) So if anyone
has a good suggestion for an EBook, that in a rather basic way, would take
people into the whole business of objects and so forth, that would have been
great. But for right now, I just want to sort out this very project, and
have it going... :)

Thanks everyone, for whatever ideas you might be able to come up with.


----- Original Message -----
From: "Chip Orange" <lists3...@comcast.net>
To: <gw-scripting@gwmicro.com>
Sent: Saturday, January 16, 2010 8:28 PM
Subject: RE: Braille Table question


> David,
>
> in the help file, yes it seems you understood exactly where I meant, when 
> it
> tells you which kind of object something may be retrieved from, you can
> click on that object there in the text, and you'll be reading the main 
> help
> topic for it.
>
> if you had gone back just one level further from setfile you would have 
> seen
> that the active setfile is a property named activeSettings of the
> application object.  Any time you need to know what's active for pretty 
> much
> anything, try looking first under the application object.  sometimes, if 
> you
> guess right there as to which general type of item the property you're
> seeking might be in, you can go down from the top and find it, rather than
> from the bottom going up.  however, the bottom going up as I said will
> always work, without guessing.
>
> In this case, it looks to me like you should use:
>
> activeSettings.braille.TranslationTables
>
> which will give you a collection of all the braille tables in the 
> currently
> active setfile.  If you have never dealt with a collection before, it's a
> kind of list, like an array, and you'll have to run through it, processing
> each item in the list like this:
>
> dim objCurTable
> for each objCurTable in activeSettings.braille.TranslationTables
> ' do something with objCurTable
> next
>
> I realize that the help file can be confusing when it's telling you the
> object type, can be had from a property name (that's different than the
> object type name) of another object type name, which when you look it up
> comes from a property which is named differently than the object type name
> ... and so on.
>
> I hope you will read the two wiki articles, and tell me where you're still
> confused; I'm trying to do something about it for beginners.
>
> hth,
>
> Chip
>
> ________________________________
>
> From: David [mailto:eleph...@tele2.no]
> Sent: Saturday, January 16, 2010 2:24 AM
> To: gw-scripting@gwmicro.com
> Subject: Re: Braille Table question
>
>
> Yes, Chip! I know of the help on each item, if I get your description 
> right;
> and we are talking the same language.
>
> Still, I think I get lost somewhere in here. As far as I can make it, to 
> get
> the name of the active Braille table, I have to get to the
> ACTIVE
> Which can be retrieved from
> BrailleTables
> Which is to be retrieved from
> TRANSLATIONTABLES
> Which is retrieved from
> BRAILLESETTINGS
> Which is retrieved from
> BRAILLE
> Which is retrieved from
> SETFILE object.
> PWEEW! Allright, where is it I got lost? Could someone, please, have
> provided me a short sample code, that would return the name or number of 
> the
> currently active Braille Table? I thought it would be possible, but find 
> the
> manual of very little help, as it only reads a load of 'can be retrieved
> from', and provides absolutely NO example, whatsoever. Feels like one or 
> two
> lines of sample code every now and then, would have been really helpful.
> This is actually one of the BIG drawback I find about the Scripting 
> manual.
> Cases like this, I feel like you are linked in an ever ongoing circle, and
> you keep swirling around therein, all till someone provides a bit of 
> sample
> code, and Woopsy, you start to grasp some meaning in all of it. Don't 
> know,
> if it is only me, who feels that way. And, for right now, it doesn't 
> matter
> too much whether or not. What keeps my project stuck, at the moment, is 
> that
> I can't get the info as to which Braille table is active, or how to change
> it.
>
> Hope someone can provide me a bit of help, since I have been running in
> circles in the manual for a few hours now.
>
> Thanks alot!
>
>
>
>
> ----- Original Message ----- 
> From: Chip Orange <mailto:lists3...@comcast.net>
> To: gw-scripting@gwmicro.com
> Sent: Saturday, January 16, 2010 4:21 AM
> Subject: RE: Braille Table question
>
> Hi David,
>
> if you will go into the help file, and find the brailletables
> object, and press enter on it, this will open it up in the tree structure,
> but it will also make a help topic for the object available, which you can
> see as usual with the f6 key.  it took me a while to catch on to this, I
> thought the top level objects were just there as containers for the
> properties and methods in the tree structure, but they do have their own
> help, and each one tells you how to get that particular kind of object.
> here is what it says for brailleTables:
>
> "Usage
> Use the
> BrailleTables
> object to retrieve a collection of Braille tables. A
> BrailleTables
> object can be obtained from a
> BrailleSettings
> object's
> TranslationTables
> property."
>
> hth,
>
> Chip
>
> ________________________________
>
> From: David [mailto:eleph...@tele2.no]
> Sent: Friday, January 15, 2010 9:37 PM
> To: Scripting List WE
> Subject: Braille Table question
>
>
> I am pretty sure, I don't understand the manual. So every bit of
> direction is greatly appriciated. Here is my script, please let me know 
> what
> I am missing, and how to do it correctly.
>
> Dim BrlTab
> Set BrlTab = BrailleTables.Active
> Speak "Current Braille Table is: " & BrlTab
>
> I get the following error message:
> Variable is undefined: 'BrailleTables'
> Ok, what do I do to define the BrailleTables object, described in
> the manual?
>
> Thanks again,
>
>
> ________________________________
>
> I am using the Free version of SPAMfighter
> <http://www.spamfighter.com/len> .
> We are a community of 6 million users fighting spam.
> SPAMfighter has removed 320 of my spam emails to date.
> The Professional version does not have this message.
>
>
> 


--
I am using the free version of SPAMfighter.
We are a community of 6 million users fighting spam.
SPAMfighter has removed 327 of my spam emails to date.
Get the free SPAMfighter here: http://www.spamfighter.com/len

The Professional version does not have this message


Reply via email to