|
-
Mar 22nd, 2005, 12:24 AM
#1
Thread Starter
Member
struct trouble
i need some help to resolve an error in the code below.
VB Code:
public struct Domains
{
public string id;
public int start;
public int length;
public domainType type;
public string value;
}
Domains domain1;
...some code..
[U]domain1 =0;[/U]
[U][B]ERROR: Cannot implicitly convert type 'int' to 'TPT.Configurator.BillOfKitsDesign.ConfiguredKits'[/B][/U]
the underlined code is the region with error and the error message is highlighted immediately below the code in bold underlined. I am new to C# and any help would be immensely appreciated.
-
Mar 22nd, 2005, 04:56 AM
#2
Re: struct trouble
What are you trying to do here domain1 is a structure:
domain1 =0;
-
Mar 22nd, 2005, 09:16 AM
#3
Thread Starter
Member
Re: struct trouble
i dont quite know, this code is not mine and i'm trying to debug some old code. I'm not able to figure out what the code
is supposed to mean!! Thats the reason why i thought posting it here might help. Any clues?
-
Mar 22nd, 2005, 10:15 AM
#4
Re: struct trouble
I'd remove it. It is possible that it is an attempt to set domain1 to a default value but to do that you would have to have something like:
Code:
domain1.id = "";
domain1.start = 0;
//etc
-
Mar 23rd, 2005, 01:31 AM
#5
Thread Starter
Member
Re: struct trouble
i was thinking on those lines too...thx for the help buddy. I appreciate it.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|