Funny Messsage

itspeter
Member Posts: 105
Hi,
There is no issue here, encounter something funny and would like to share.
Declare variable:-
There is no issue here, encounter something funny and would like to share.
Declare variable:-
Name DataType Subtype lauto_Shell Automation 'Microsoft Shell Controls And Automation'.Shell
CREATE(lauto_Shell); MESSAGE(FORMAT(lauto_Shell.Open(doscommandvar))); CLEAR(lauto_Shell);When run it, to prompt as below:-
--------------------------- Microsoft Business Solutions-Navision --------------------------- Type conversion is not possible because 1 of the operators contains an invalid type. JOKER := VOID --------------------------- OK ---------------------------
Regards,
Peter Ng
Peter Ng
0
Comments
-
I got the same error last week.
If I remember correctly it poped up after I changed the returnvalue of a function, but I'm not sure. :?0 -
hi
the method 'open' doesn't have any return value ---> so you cannot use it with FORMAT(...)0 -
Hi wakestar,
I know, I was just playing with it.
Wanted to see how FORMAT handle void function.Regards,
Peter Ng0 -
aaah, I see
obviously FORMAT uses the 'Joker' for such cases0 -
wakestar wrote:aaah, I see
obviously FORMAT uses the 'Joker' for such cases
Now there is only one question left:
Was it the "50:50", the "call a friend" or the "audience query" joker?regards,
Michael Schumacher
oh, what day is it? Backup day. OK, let's dump all data to /dev/nul ;-)0 -
0
-
While we're at it, about about this error message? This was in Financials a few years ago.
I do have a screenshot but I haven't kept the code which triggered the error.The function was called with Text in the parameter 1. It should have been Text.
Nelson Alberto0
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