VISIBLE(FALSE) doesn't works

celeven
Member Posts: 3
I'm programming the Eight-Queen-Problem in NAV. I create a form, shapes to represent the chessboard and textboxes for the queens with a "Q"-textconstant (for Queen) as sourceexpression for the textboxes.
With a recursive function i set e.g. the first solution in an array. The calculation is correct, the right queens are shown after the calculation.
BUT: I will set the queens during the calculation. I will make visible how backtracking works, make the calculation visible, make visible how the program set and remove queens. When i e.g. call from the recursive mainfunction a function that do showing the queens:
CurrForm.queen_23.VISIBLE(x[2] = 3);
CurrForm.queen_23.UPDATE;
...
When the expression is True, then the "queen_23" will appear on the chessboard cause the UPDATE on textbox. BUT WHEN THE VISIBLE STATEMENT IS FALSE, the program has to remove the queen, but this doesen't works.Why Not? Is this a problem of a recursive function that calls a function?
Thanks for Feedbacks.
With a recursive function i set e.g. the first solution in an array. The calculation is correct, the right queens are shown after the calculation.
BUT: I will set the queens during the calculation. I will make visible how backtracking works, make the calculation visible, make visible how the program set and remove queens. When i e.g. call from the recursive mainfunction a function that do showing the queens:
CurrForm.queen_23.VISIBLE(x[2] = 3);
CurrForm.queen_23.UPDATE;
...
When the expression is True, then the "queen_23" will appear on the chessboard cause the UPDATE on textbox. BUT WHEN THE VISIBLE STATEMENT IS FALSE, the program has to remove the queen, but this doesen't works.Why Not? Is this a problem of a recursive function that calls a function?
Thanks for Feedbacks.
0
Comments
-
You can try to update whole form by CurrForm.Update(False)...0
-
An Update on the whole form doesn't works. But I solved this problem in another way. I created a new matrix as the source expression for the textboxes. After i assigned a 'Q' or a '(space)' to it, depends on whitch textbox shows a queen and which not. After this, i update the textboxes with this statement: CurrForm.textbox.UPDATE;. Now it works.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