Create(automation) = false
MarcelW
Member Posts: 46
Hello,
ich want to create an instance of an automation server variable.
Here is a code snippet to see:
The instance can't be created every time! :?
I have no idea to solve the problem.
I hope someone of you can give a tip to me!
Bye
ich want to create an instance of an automation server variable.
Here is a code snippet to see:
IF NOT ISCLEAR(OApplication) THEN CLEAR(OApplication);
IF CREATE(OApplication, TRUE) THEN
MESSAGE(':-(')
ELSE
MESSAGE(':-)');
...
The instance can't be created every time! :?
I have no idea to solve the problem.
I hope someone of you can give a tip to me!
Bye
0
Comments
-
Hey Marcel,
why do clear an re-instantiate the ac? Maybe it's a timing problem of clear and create. I've had similar problems with an ac in an asp-project.
So, try to use the first instance all the time.
Wich ac do you use?
Greetings to cg
cheers0 -
Try the other way around:
IF ISCLEAR(OApplication) THEN BEGIN IF CREATE(OApplication, TRUE) THEN MESSAGE(':-(') ELSE MESSAGE(':-)'); END ELSE BEGIN MESSAGE('Did not re-initialize the AC'); END;0 -
Thanks for the answers.
My code is the result of several tryings to fix the problem.
I tried all variants of the code i could imagine.
But i had solved the problem:
I use a simple 4.0 Client and the last registered dll was the one of an
newer version of Navision 4. So the old version used the newer dll.
That was the problem!
Thanx, Marcel0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 328 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
