Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Englisch dictonary

 
Logged in as: Guest
arrSession:exec spGetSession 2,16,57014
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> Post a VBScript >> Englisch dictonary
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Englisch dictonary - 2/21/2008 9:23:40 PM   
  djredmar

 

Posts: 42
Score: 0
Joined: 12/11/2006
From: Europe, The Netherlands
Status: offline
some script i made for colleques to have the phone alvabet :)
example

Leroy
Lima Echo Romeo Oscar Yankee


      

_____________________________

blah?
 
 
Post #: 1
 
 RE: Englisch dictonary - 2/22/2008 2:51:56 AM   
  ebgreen


Posts: 4595
Score: 29
Joined: 7/12/2005
Status: offline
Thanks for sharing your code. In the interest of promoting good coding habits, I would suggest putting this code at the top:

Option Explicit

Dim objAlfabet
Dim strInvoer
Dim strUitvoer
Dim strKarakters
Dim i
Dim bla


The next thing that I would do is to change strKarakters to be nKarakters since it is intended to hold an integer and not a string. I would also change bla to be strBla since it is intended to hold a string. You could also consider changing objAlfabet to dicAlfabet. This is really a personal preference issue with no real standard to support it. I find that I use dictionaries often enough that it is worth distinguishing them from other objects.


_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to djredmar)
 
 
Post #: 2
 
 RE: Englisch dictonary - 2/22/2008 3:25:54 AM   
  djredmar

 

Posts: 42
Score: 0
Joined: 12/11/2006
From: Europe, The Netherlands
Status: offline
Thanks for your input,

I had an bet with an colleque if i could do something like this within an half hour.

I did :) soo that's the main reason there are no comments, and the var names are not perfect.

Feel free to modify the script, i just though it might come in handy. It is usefull if you communicate a lot by phone, else it is almost worthless.
        

(in reply to ebgreen)
 
 
Post #: 3
 
 RE: Englisch dictonary - 2/23/2008 3:06:37 PM   
  TomRiddle


Posts: 93
Score: 0
Joined: 2/7/2008
Status: offline
I had a play with this because it looked like a good example of the vbscript dictionary.

I came up with a script which should satisfy English Speakers, The deaf, and ebgreen's syntax.


      

I am not sure what the word "test" is for in the script. Can anyone point me to documentation for dictionaries?
Also I have heard it is good programming practice to put option explicit in the script but why do it if it is not needed?

(in reply to djredmar)
 
 
Post #: 4
 
 RE: Englisch dictonary - 2/23/2008 10:51:37 PM   
  djredmar

 

Posts: 42
Score: 0
Joined: 12/11/2006
From: Europe, The Netherlands
Status: offline
Hi,

thanks for your input! i am not sure what test does, i copy'ed this script from the sticky vbclass examples...

Didn't knew there was voice able to use in vbscript :D will check this out; thanks!  

(in reply to TomRiddle)
 
 
Post #: 5
 
 RE: Englisch dictonary - 2/24/2008 11:47:01 PM   
  gdv


Posts: 2
Score: 0
Joined: 2/24/2008
From: Holland
Status: offline
At first: sorry for my bad English, but I am dutch. I hope you will understand my question.

I have a question about the script on the top:

If i put in a word, after the output the script end.

Is it possible to put in an other wordt again as much as you want till you click "annuleren".

(in reply to djredmar)
 
 
Post #: 6
 
 RE: Englisch dictonary - 2/24/2008 11:54:25 PM   
  djredmar

 

Posts: 42
Score: 0
Joined: 12/11/2006
From: Europe, The Netherlands
Status: offline
@gdv,

Yes i understand, you do want a loop until you click next.

Just create a loop with an until statement.

(in reply to gdv)
 
 
Post #: 7
 
 RE: Englisch dictonary - 2/24/2008 11:57:49 PM   
  gdv


Posts: 2
Score: 0
Joined: 2/24/2008
From: Holland
Status: offline
Sorry, but how to create that loop? I'm a beginner with visual basic, so please help me

(in reply to djredmar)
 
 
Post #: 8
 
 RE: Englisch dictonary - 2/25/2008 12:47:43 AM   
  djredmar

 

Posts: 42
Score: 0
Joined: 12/11/2006
From: Europe, The Netherlands
Status: offline

      

edit: Modified regarding ebgreen

< Message edited by djredmar -- 2/25/2008 1:25:57 AM >

(in reply to gdv)
 
 
Revisions: 2 | Post #: 9
 
 RE: Englisch dictonary - 2/25/2008 1:13:43 AM   
  ebgreen


Posts: 4595
Score: 29
Joined: 7/12/2005
Status: offline
Right now, the test variable does absolutely nothing. I would suggest removing it completely. So for example this line:

objAlfabet.add test & "Z", "Zulu"

would become:

objAlfabet.add "Z", "Zulu"

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to djredmar)
 
 
Post #: 10
 
 RE: Englisch dictonary - 2/29/2008 4:09:15 PM   
  DiGiTAL.SkReAM


Posts: 1095
Score: 6
Joined: 9/6/2005
From: Florida, USA
Status: offline
I took the original script segment, and modified it just a bit, and added an audio bit to it.
Now, if you pass the subroutine a string, it will read it out to you, letter by letter... numbers too.
It needs a little work on some of the pronunciations, but overall, it does ok.
Dunno what use it could be, but if nothing else, it could be fun to play with a bit.



      


_____________________________

"There's the one man who learns by reading, the two men that learn by watching, and the rest of us have to pee on the electric fence for ourselves." - Roy Rogers

"Would you like to touch my monkey?" - Dieter (Mike Meyers)

(in reply to ebgreen)
 
 
Post #: 11
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> Post a VBScript >> Englisch dictonary Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts