Hi,
I've 2 variables which point to the same table, and both have the property "temporary" set. So variable A should store one set of records, variable B another one. If the same record exists in the recordset of A, I can still insert it in B. If a record is modified by using variable A, this doesn't affect the same record stored with variable B. Am I right?
I've too much data to debug it properly in my actual task, but it seems as if action by using variable A are affecting record assigned to B. Is there a known bug in 2.xx?
Thanks!
0
Comments
RIS Plus, LLC
You mean something like "if you give a man a fish you feed hi for a day, if you teach him to fish you feed him for life."
I think What Daniel is saying is extremely important, yet being forgotten by too many developers today. Asking for guidance is one thing, but there are some things you have to do and try and learn from.
But if it should work I'd like to find my mistake.
What I can imagine is probably happening is that in this massive amount of code, there are two variables that have very similar names. Somewhere down the line some code that applied to one of them was copied to apply to the other, and Ctrl+H was used to do a find/replace. Now you're in debugging mode and you're not sure which variable is supposed to hold what value. I can predict with a fair amount of certainty that the variables are exactly what they are supposed to be according to the code. Good luck finding out where the error is.
Fun times with the debugger eh
RIS Plus, LLC
Well, actually I wasn't asking for fish nor did I expect someone to teach me fishing. I wanted to know if there are sharks in the water, because usually I fish in a different sea...
Temptables had a few issues in the early versions, but by ver. 1.3 they were stable, and by 2.01 (I think that's when they allowed secondary keys) they worked great and without issues.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
sometimes, with small sized databases, i used this approach: backup the database, convert it to newer version, debug the code, restore the database on the old client... :twisted:
EDIT: ideally you should
1 backup
2 create a new db on a newer client
3 restore the database on the new database you have created at point 2 and debug
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog