Click here to Skip to main content
15,892,537 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Hello. Sorry i am new in vb.net and in making codes, i am trying to create DTR so i start studying the sample project of UareU. I have read the codes and try it by running the app. I understand all codes but there is one thing i want to know, i have this code from the sample subject:

VB
Private frstFinger As Fmd = Nothing

VB
Private ffs1 As String

...
...
...
VB
frstFinger = resultConversion.Data

VB
ffs1 = Fmd.SerializeXml(frstFinger)


this lines work perfectly, what i want is to save data into a string like this:

VB
Private frstFinger As List(of Fmd)

VB
Private ffs1 As String

...
...
...
VB
frstFinger = resultConversion.Data

VB
ffs1 = Fmd.SerializeXml(frstFinger)'this line says "Value of type 'System.Collections.Generic.List(Of DPUruNet.Fmd)' cannot be converted to 'DPUruNet.Fmd'."

Is there anyway to save the data into a string from List(of fmd)? I just want it so that the employee will scan several times and store it as a single template. Thanks in advance.

What I have tried:

I have tried to make it so that the employee will scan their finger several times in registering.
Posted
Comments
[no name] 6-Jul-18 11:05am    
Goodness me, please don't ever call it 'making codes' - you mean 'programming'.

This means that resultConversion.Data, whichever type that is, cannot be accepted by SerializeXml. Which type is resultConversion.Data and which type(s) can SerializeXml accept?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900