Variable Not Defined -E-Prime program (VB)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JohnTaylor
    New Member
    • Jul 2010
    • 1

    Variable Not Defined -E-Prime program (VB)

    I am working in a Psychology Software package called E-Prime, and I keep getting 'variable not defined' where >'Set mysoundbuffer=s ound.createbuff er.' is. Can someone spot where I am going wrong?

    Thanks in advance
    -John
    Attached Files
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    What is mySoundBuffer ?

    You are trying to use that variable without declaring.

    Comment

    • Guido Geurs
      Recognized Expert Contributor
      • Oct 2009
      • 767

      #3
      Originally posted by JohnTaylor
      I am working in a Psychology Software package called E-Prime, and I keep getting 'variable not defined' where >'Set mysoundbuffer=s ound.createbuff er.' is. Can someone spot where I am going wrong?

      Thanks in advance
      -John
      I'm not familiar with this program but in VB we must set the objects if we want to use it.
      Like for a FileSystemObjec t=

      Code:
         Set fso = CreateObject("scripting.FileSystemObject")
      And than we can use it like:

      Code:
      Dim totalsFile
         Set totalsFile = fso.OpenTextFile(txtFilePath, 1)

      Comment

      Working...