Code Unit cannot return DateFormula??

teckpoh
Member Posts: 271
Hi All,
Do u know how to return a data type = DateFormula in codeunit? I notice in codeunit function there we can set a parameter datatype = dateformula BUT in return type(return value) there i can't choose dateformula as my return type.
Any suggestion/advise ...thank a lot~
Do u know how to return a data type = DateFormula in codeunit? I notice in codeunit function there we can set a parameter datatype = dateformula BUT in return type(return value) there i can't choose dateformula as my return type.
Any suggestion/advise ...thank a lot~
0
Answers
-
Make it a paramater and pass it by reference (tick the Var) in the parameter line.0
-
Hi Ara3n,
i mean at codeunit function->Return Value(tab)->Return Type[there are no such datatype called dateformula]. How to pass the return type as dateformula.0 -
you can't, that's why I suggested to use parameter.
Or use text, and evaluate back to dateformular.0 -
Hi Ara3n,
Thank for you reply...may i know if i use text how to evaluate it back to dateformula? Thank in advance~0 -
try EVALUATE(yourDateFormulaVar, yourText);NAV - Norton Anti Virus
ERP Consultant (not just Navision) & Navision challenger0 -
Thank a lot idiot~~ Use EVALUATE function make my thing work successfully~
Cheer,
teckpoh0
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