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
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
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?
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.
Re: Need help with a line (some.some = true)
Quote:
Originally Posted by
jmcilhinney
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??
Re: Need help with a line (some.some = true)
Haven't you answered your own question?
Quote:
Originally Posted by
rosaage
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???? :confused: There is nothing about any video anything in any question you have posted? :confused:
Re: Need help with a line (some.some = true)
Quote:
Originally Posted by
Hack
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???? :confused: There is nothing about any video anything in any question you have posted? :confused:
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?
Re: Need help with a line (some.some = true)
Whatever. Found awnser. (Read top)