Results 1 to 8 of 8

Thread: Need help with a line (some.some = true)

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2011
    Posts
    15

    Question Need help with a line (some.some = true)

    How can i make a new like in the code? (the tobi.loop part) i need it to respond with a true or false if asked and so i can set true or false how can i do this?
    Code:
            If AxVLCPlugin21.playlist.isPlaying Then
                If Tobi.loop Then
                    AxVLCPlugin21.playlist.playItem("0")
                    Timer1.Enabled = True
                End If
            Else
                Timer1.Enabled = False
                AxVLCPlugin21.playlist.clear()
            End If
    Code:
        Private Sub Button10_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button10.Click
            If Tobi.loop = True Then
                Tobi.loop = False
            Else
                Tobi.loop = True
            End If
        End Sub
    or if nobody knows do you know one not in use that i can get and set?

    *EDIT*
    Can someone help me with the loop in videolan activex comonent v2?
    *EDIT2*
    I gave up trying to make one so i made a new form and turned form2.topmost into loop on/off
    Last edited by rosaage; Nov 18th, 2011 at 02:52 PM. Reason: Found awnser

  2. #2
    Powered By Medtronic dbasnett's Avatar
    Join Date
    Dec 2007
    Location
    Jefferson City, MO
    Posts
    9,897

    Re: Need help with a line (some.some = true)

    A guess at what you mean...

    Code:
        Dim Tobi As New foo
        Private Sub Button10_Click(sender As System.Object, e As System.EventArgs) Handles Button10.Click
            If Tobi.isLoop Then
                Tobi.isLoop = False
            Else
                Tobi.isLoop = True
            End If
            'the above if / else / endif could be replaced with
            'Tobi.isLoop = Not Tobi.isLoop
        End Sub
    
        Class foo
            Private _tobi As Boolean
            Public Property isLoop() As Boolean
                Get
                    Return _tobi
                End Get
                Set(ByVal value As Boolean)
                    _tobi = value
                End Set
            End Property
    
        End Class
    My First Computer -- Documentation Link (RT?M) -- Using the Debugger -- Prime Number Sieve
    Counting Bits -- Subnet Calculator -- UI Guidelines -- >> SerialPort Answer <<

    "Those who use Application.DoEvents have no idea what it does and those who know what it does never use it." John Wein

  3. #3

    Thread Starter
    New Member
    Join Date
    Nov 2011
    Posts
    15

    Re: Need help with a line (some.some = true)

    I tried i but now the video just stops 2 sec before end. so is there any true/false not used?

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Need help with a line (some.some = true)

    It's 4 AM here so I may not be at my best but I have read your original post three times and it makes no sense to me. You might try rephrasing your question to make it a bit clearer.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  5. #5

    Thread Starter
    New Member
    Join Date
    Nov 2011
    Posts
    15

    Re: Need help with a line (some.some = true)

    Quote Originally Posted by jmcilhinney View Post
    It's 4 AM here so I may not be at my best but I have read your original post three times and it makes no sense to me. You might try rephrasing your question to make it a bit clearer.
    ok i want to make a something.something so that if u ask:
    if
    something.something than
    do.something
    else
    something.something = true
    something.something = false
    you get a true or a false + be able to set it to true or false with something.something = true/false
    get it now??

  6. #6
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Need help with a line (some.some = true)

    Haven't you answered your own question?
    Quote Originally Posted by rosaage View Post
    ok i want to make a something.something so that if u ask:
    if
    something.something than
    do.something
    else
    something.something = true
    something.something = false
    you get a true or a false + be able to set it to true or false with something.something = true/false
    get it now??
    Then do
    Code:
    if something.something = true then
         do.something
    else
         something.something = true
         something.something = false
    end if
    By the way, what does this have to do with anything>
    Quote Originally Posted by rosaage
    I tried i but now the video just stops 2 sec
    What video???? There is nothing about any video anything in any question you have posted?

  7. #7

    Thread Starter
    New Member
    Join Date
    Nov 2011
    Posts
    15

    Re: Need help with a line (some.some = true)

    Quote Originally Posted by Hack View Post
    Haven't you answered your own question?Then do
    Code:
    if something.something = true then
         do.something
    else
         something.something = true
         something.something = false
    end if
    By the way, what does this have to do with anything>What video???? There is nothing about any video anything in any question you have posted?
    if you see the first post i used:
    AxVLCPlugin21. that is the videolan activex component
    and something.something returns error
    'something' is not declared. It may be inaccessible due to its protection level.
    so i'm looking for a way to make it useable
    like the axvlcplugin21.playlist.isplaying
    returns true if it is playing a video and false if not. get it?

  8. #8

    Thread Starter
    New Member
    Join Date
    Nov 2011
    Posts
    15

    Re: Need help with a line (some.some = true)

    Whatever. Found awnser. (Read top)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width