4 Replies Latest reply on Aug 26, 2007 9:02 PM by MughalShahzad

    Hyperlink

    MughalShahzad

      Sorry, your choice "Zip Drive" is wrong, View Lesson "Memory Devices"

      suppose that a quiz is being attempted by some one and the above statement will appear whenever a wrong choice is selected by the student, i want to make the lesson name a link for another projector file located in same directory so that student can view and listen the lesson carefully and then come back to the quiz to try again to attempt the question.

      In the above statement the lesson name will change with reference to question.
      This is the line to edit
      member("txtComments").text = "Sorry, your choice " & myAlfa & " is wrong, View Lesson "& "'" & rstQuest.Fields[3] &"'"

      Regards,
      Shahzad
        • 1. Re: Hyperlink
          James Newton, ACP Level 3
          on ShowResult(myAlfa, myRecommendation, myLink) ----------------------
          -- INPUT: <myAlfa> should be the string answer given by the user
          -- <myRecommendation> should be the name of the lesson to
          -- revise
          -- <myLink> should be the relative or absolute path to the
          -- movie containing the recommended lesson
          -- ACTION: Sets the text of the member "txtComments", and makes the
          -- recommended lesson name a hyperlink to the appropriate
          -- movie.
          -- NEEDS: Attach Chris Walcott's "Hypertext - General" behavior to
          -- the sprite containing the "txtComments" member. (Choose
          -- Window | Library Palette > Text to find the behavior.
          --------------------------------------------------------------------

          vText = "Sorry, your choice '" & myAlfa & "' is wrong, View Lesson "& "'" & myRecommendation &"'" -- rstQuest.Fields[3] &"'"
          -- Sorry, your choice "Zip Drive" is wrong, View Lesson "Memory Devices"

          vMember = member("txtComments")
          vMember.text = vText
          vStart = offset("View Lesson '", vText) + 13
          vEnd = vText.char.count - 1

          vMember.char[vStart..vEnd].hyperlink = "lingo:go movie '"&myLink&"'"
          end ShowResult
          • 2. Re: Hyperlink
            MughalShahzad Level 1
            Sir problem property not found
            #hyperlink
            vMem.char[vStart..vEnd].hyperlink = "lingo:go movie '"&myLink&"'"
            please do somthing
            • 3. Re: Hyperlink
              James Newton, ACP Level 3
              Are you using a #text member? Hyperlinks only work with text members, not with fields.
              • 4. Re: Hyperlink
                MughalShahzad Level 1
                than you so much problem has removed
                Regards,
                Shahzad