Dll to create a general journal from .net c#

hi all

i am trying to create a general journal from c#.net

for tat i written my code in .net, i added necessary classes and reference in my .net project too

but whn i initialize the values in container am getting error msg as

acctPattern = [‘211345-Disp’,‘211345’, 2, ‘Department’,‘00000014’,‘CostCenter’, ‘00000007’];

Error 7 Invalid expression term

Error 5 Too many characters in character literal

pls suggest me some ideas,

thanx in advance

C# uses single quotes for character literals. Use double quotes ("") for strings.

Please ask development-related questions in the developer forum. (Moved from the Technical forum.)

hi martin,

after changing also got same error…

acctPattern = [“211345-Disp”,"211345’, 2, “Department”,“00000014”,“CostCenter”, “00000007”];

Error 7 Invalid expression term

Error 5 Too many characters in character literal

thank you…

If you used your time for reading your code and listening to the compiler instead of immediately going to this forum, you would have noticed that you didn’t replace all single quotes.

hi martin,

pls chk the above screen shot, now its corrected.

still same error :frowning:

No, it’s not the same error at all! Now the compiler says that [ can’t be used where you’re trying to use it.

C# is a different language than X++ and it doesn’t have containers like X++. It has arrays and other collection classes, such as dictionaries.

Please learn basics of the language before writing any code.

ok martin sir :slight_smile: