RTC 2009 R2 - Compilation of assembly - Pages

mpudja
Member Posts: 32
Hello everyone,
I have one problem with running a Page. I've read somewhere that could be a Bug in compiling from C/AL to C# but I am not sure.
p.s
I have Picture in attachment, but on German language. Translated to English means "Operator can not work with Types Double and Decimal"
this is a line of C# code in ....\Source\Page Folder. 50074.cs file
Rec.Target.SetFieldValueSafe(35, NavType.Decimal, new NavDecimal(ALCompiler.ToDecimal(tc.InvokePropertyGet<Double>(@GetPreis, 1))))
Does anyone know what could be the problem ?
1.) This is actualy one dll file with functions which we use with external application ( Automation ). I've tried to change Double into Decimal in Visual Studio, but doesn't help.
Now, I've tried just for testing purposes put Integer. With Integer everything it's OK, I can Compile Page and at the end I can run it.
But Integer is not appropriate, should be decimal or double :-k
I have one problem with running a Page. I've read somewhere that could be a Bug in compiling from C/AL to C# but I am not sure.
p.s
I have Picture in attachment, but on German language. Translated to English means "Operator can not work with Types Double and Decimal"
this is a line of C# code in ....\Source\Page Folder. 50074.cs file
Rec.Target.SetFieldValueSafe(35, NavType.Decimal, new NavDecimal(ALCompiler.ToDecimal(tc.InvokePropertyGet<Double>(@GetPreis, 1))))
Does anyone know what could be the problem ?
1.) This is actualy one dll file with functions which we use with external application ( Automation ). I've tried to change Double into Decimal in Visual Studio, but doesn't help.
Now, I've tried just for testing purposes put Integer. With Integer everything it's OK, I can Compile Page and at the end I can run it.
But Integer is not appropriate, should be decimal or double :-k
0
Answers
-
I have found workaround solution.
Instead of decimal and double I put data type Single and everything seems fine. [-o<0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions