If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
|
Thread Tools | Display Modes |
#11
|
|||
|
|||
Convert Coding into VB?
I did the compile, come up with this as error:
Dim mobjVoice As SpeechLib.SpVoice Then Set mobjVoice = New SpVoice Then on and on I see nothing in the form's Load event that should raise that error. What specific code is it complaining about? (You may have to do a Compile, under the Debug menu). The ListVoices function is in that form's code, and it definitely compiles properly even if there's no reference set to sapi.dll. I'd expect that once you fix the error(s) uncovered by the Compile, both errors should be fixed. -- Doug Steele, Microsoft Access MVP http://I.Am/DougSteele (no private e-mails, please) "Curtis Stevens" wrote in message ... I'm doing the text to speech, type something in & it talks to me. Ok, I created a new sample clean db, imported the frmSAPIDemo form only. Opened form it says: The expression on load you entered as the even prop setting produced the following error: user-defined type not defined. HIT ok Another error saying: ListVoices may not be a valid setting for the RowSourceType property or there was a compile error in the function. Curtis |
#12
|
|||
|
|||
Convert Coding into VB?
Ahhh, that reference did it!!!!
I see nothing in the form's Load event that should raise that error. What specific code is it complaining about? (You may have to do a Compile, under the Debug menu). The ListVoices function is in that form's code, and it definitely compiles properly even if there's no reference set to sapi.dll. I'd expect that once you fix the error(s) uncovered by the Compile, both errors should be fixed. -- Doug Steele, Microsoft Access MVP http://I.Am/DougSteele (no private e-mails, please) "Curtis Stevens" wrote in message ... I'm doing the text to speech, type something in & it talks to me. Ok, I created a new sample clean db, imported the frmSAPIDemo form only. Opened form it says: The expression on load you entered as the even prop setting produced the following error: user-defined type not defined. HIT ok Another error saying: ListVoices may not be a valid setting for the RowSourceType property or there was a compile error in the function. Curtis |
#13
|
|||
|
|||
Convert Coding into VB?
Is the copy of the code on the web incorrect?
My copy has Dim mbooBreakRequested As Boolean 'Dim mobjVoice As SpeechLib.SpVoice Dim mobjVoice As Object In other words, I'm using Late Binding, but I'm showing what the declaration should be if using Early Binding in the commented section. -- Doug Steele, Microsoft Access MVP http://I.Am/DougSteele (no private e-mails, please) "Curtis Stevens" wrote in message ... I did the compile, come up with this as error: Dim mobjVoice As SpeechLib.SpVoice Then Set mobjVoice = New SpVoice Then on and on I see nothing in the form's Load event that should raise that error. What specific code is it complaining about? (You may have to do a Compile, under the Debug menu). The ListVoices function is in that form's code, and it definitely compiles properly even if there's no reference set to sapi.dll. I'd expect that once you fix the error(s) uncovered by the Compile, both errors should be fixed. -- Doug Steele, Microsoft Access MVP http://I.Am/DougSteele (no private e-mails, please) "Curtis Stevens" wrote in message ... I'm doing the text to speech, type something in & it talks to me. Ok, I created a new sample clean db, imported the frmSAPIDemo form only. Opened form it says: The expression on load you entered as the even prop setting produced the following error: user-defined type not defined. HIT ok Another error saying: ListVoices may not be a valid setting for the RowSourceType property or there was a compile error in the function. Curtis |
|
Thread Tools | |
Display Modes | |
|
|