J Trahair
Well-known member
I have a project written a year or so ago and in use on a handheld computer terminal. It works fine. In three places it uses the Format() function, as in:
- ensures a single figure appears as 01, 02 etc.
or
- you know the sort of thing. Works fine.
I want to create a new project exactly based on the existing one. I created the new project, added in all the same dlls, added all the same References, ticked all the same boxes (and I have checked everything several times).
I imported the .vb from the original project into the new project, but where there are Format(whatever) items, I get the following errors for each instance of Format():
then
Needless to say, I don't get these errors in the original project but I do in the clone.
What references or etc. do I need to get rid of the errors?
I think the second error of each pair will go away when the first one is sorted.
Thank you.
VB.NET:
strTagIDToCollapse = Format(gnumRFIDTagValueToWrite, "00")
or
VB.NET:
Format(Date.Now, "dd/MM/yyyy")
I want to create a new project exactly based on the existing one. I created the new project, added in all the same dlls, added all the same References, ticked all the same boxes (and I have checked everything several times).
I imported the .vb from the original project into the new project, but where there are Format(whatever) items, I get the following errors for each instance of Format():
HTML:
Error 1 Argument not specified for parameter 'format' of 'Public Shared Function Format(enumType As System.Type, value As Object, format As String) As String'.
HTML:
Error 4 Value of type 'Date' cannot be converted to 'System.Type'.
What references or etc. do I need to get rid of the errors?
I think the second error of each pair will go away when the first one is sorted.
Thank you.