Click here to Skip to main content
15,896,557 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: pls help me Pin
Christian Graus15-Feb-09 18:31
protectorChristian Graus15-Feb-09 18:31 
AnswerRe: [Message Deleted] Pin
Smithers-Jones15-Feb-09 21:58
Smithers-Jones15-Feb-09 21:58 
Questionhexa only Pin
aswd15-Feb-09 14:56
aswd15-Feb-09 14:56 
GeneralRe: hexa only Pin
Luc Pattyn15-Feb-09 15:03
sitebuilderLuc Pattyn15-Feb-09 15:03 
Questionmultiple line Pin
aswd15-Feb-09 12:40
aswd15-Feb-09 12:40 
AnswerRe: multiple line Pin
Calin Tatar15-Feb-09 12:44
Calin Tatar15-Feb-09 12:44 
GeneralRe: multiple line Pin
aswd15-Feb-09 12:48
aswd15-Feb-09 12:48 
QuestionWhat would you think if a property has value inside a class but inside a form? [modified] Pin
JUNEYT15-Feb-09 4:56
JUNEYT15-Feb-09 4:56 
Hi,

I am experiencing a strange proplem which is a property doesn't return a value when I try to use the class explicitly as shown below. I have checked to make sure if property has a value inside a class and the anawer was yes. However when try to use MetaData class inside the form Artist name returns nothing. Where do I make mistake?

Any Idea?

<br />
'FORM<br />
<br />
MetaDataFactory.GetMetaData ("FileNameGoesHere")<br />
<br />
Dim XData as New MetaData<br />
<br />
Artist = XData.Artist 'Doesn't return the value.<br />
<br />
'----------------------------------------------------------<br />
'SUB CLASS USES AN INTERFACE<br />
<Serializable()> _<br />
Public Class MetaData<br />
    Implements IMetaData<br />
<br />
Private _Artist as String = Nothing<br />
<br />
    Public Property Artist() As String Implements IMetaData.Artist<br />
        Get<br />
            Return _Artist<br />
        End Get<br />
        Set(ByVal value As String)<br />
            _Artist = value<br />
        End Set<br />
    End Property<br />
<br />
Public Interface IMetaData<br />
    Property Artist() As String<br />
End interface<br />
<br />
'-----------------------------------------------------------------------------<br />
'METADATAFACTORY CLASS<br />
Public Class MetaDataFactory<br />
    Public Shared Function GetMetaData(ByVal filename As String) As MetaData<br />
    Dim XX as new MetaData<br />
        xx.Artist = "BOB MARLEY"<br />
End Function   <br />
End Class<br />
<br />
<br />
<br />



What a curious mind needs to discover knowledge is noting else than a pin-hole.


modified on Sunday, February 15, 2009 11:30 AM

AnswerRe: What would you think if a property has value inside a class but inside a form? Pin
riced15-Feb-09 5:26
riced15-Feb-09 5:26 
GeneralRe: What would you think if a property has value inside a class but inside a form? Pin
JUNEYT15-Feb-09 5:31
JUNEYT15-Feb-09 5:31 
GeneralRe: What would you think if a property has value inside a class but inside a form? Pin
riced15-Feb-09 5:43
riced15-Feb-09 5:43 
GeneralRe: What would you think if a property has value inside a class but inside a form? Pin
Guffa15-Feb-09 12:34
Guffa15-Feb-09 12:34 
AnswerRe: What would you think if a property has value inside a class but inside a form? Pin
Guffa15-Feb-09 12:25
Guffa15-Feb-09 12:25 
QuestionHow could a function read any type of variable's value and return it as a string? Pin
JUNEYT15-Feb-09 2:02
JUNEYT15-Feb-09 2:02 
AnswerRe: How could a function read any type of variable's value and return it as a string? Pin
riced15-Feb-09 3:09
riced15-Feb-09 3:09 
AnswerRe: How could a function read any type of variable's value and return it as a string? Pin
Eddy Vluggen15-Feb-09 3:37
professionalEddy Vluggen15-Feb-09 3:37 
GeneralRe: How could a function read any type of variable's value and return it as a string? Pin
riced15-Feb-09 4:37
riced15-Feb-09 4:37 
GeneralRe: How could a function read any type of variable's value and return it as a string? Pin
JUNEYT15-Feb-09 7:22
JUNEYT15-Feb-09 7:22 
GeneralRe: How could a function read any type of variable's value and return it as a string? Pin
Eddy Vluggen15-Feb-09 7:49
professionalEddy Vluggen15-Feb-09 7:49 
QuestionKeyDown Event keeps firing Pin
Zaegra14-Feb-09 23:25
Zaegra14-Feb-09 23:25 
AnswerRe: KeyDown Event keeps firing Pin
Wendelius15-Feb-09 0:57
mentorWendelius15-Feb-09 0:57 
AnswerRe: KeyDown Event keeps firing Pin
riced15-Feb-09 0:59
riced15-Feb-09 0:59 
GeneralRe: KeyDown Event keeps firing Pin
Zaegra15-Feb-09 2:23
Zaegra15-Feb-09 2:23 
GeneralRe: KeyDown Event keeps firing Pin
riced15-Feb-09 2:48
riced15-Feb-09 2:48 
AnswerRe: KeyDown Event keeps firing Pin
Eddy Vluggen15-Feb-09 3:27
professionalEddy Vluggen15-Feb-09 3:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.