Normal Topic Add & Search tabs open at same time (Read 743 times)
Carl Underwood
Senior Member
Members
*****
Offline



Posts: 1351
Location: New Hampshire
Joined: Mar 11th, 2003
Add & Search tabs open at same time
Apr 2nd, 2004 at 12:06am
Print Post Print Post  
Is programming supposed to function on the Search/Update tab if the Add Data tab is also open at the same time?

BTW, I also had one crash while both modes (tabs) were open at the same time. I don't remember what I did to cause it. This is what the error box diplayed:
Quote:
Runtime Error!

Program: C:\Sesame\Program\sesame.exe

R6025
- pure virtual function call

« Last Edit: Apr 2nd, 2004 at 1:07am by Carl Underwood »  


Carl Underwood
CDU Computer Consulting LLC
Epsom, New Hampshire
Back to top
IP Logged
 
Carl Underwood
Senior Member
Members
*****
Offline



Posts: 1351
Location: New Hampshire
Joined: Mar 11th, 2003
Re: Add & Search tabs open at same time
Reply #1 - Apr 2nd, 2004 at 12:19am
Print Post Print Post  
Whoa! I just discovered that the programming in the Search/Update tab is changing data in the Add Data tab. Shocked (Meanwhile, it is not changing the intended target element.) This can't be right.

Have you seen this before?

This is occuring in a layout that is using a subform, and has programming that places data into the subform from the main form. This is the code that is firing when this happens. It works just fine if only one mode (tab) is open.

Code
Select All
vCnt = @FormResultSetTotal("Transactions Form")
vLoop = 1

while vLoop <= vCnt
 {
 FormFieldValue("Transactions Form", "System ID", vLoop, System ID)
 vLoop += 1
 }
 

  


Carl Underwood
CDU Computer Consulting LLC
Epsom, New Hampshire
Back to top
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: Add & Search tabs open at same time
Reply #2 - Apr 2nd, 2004 at 2:03pm
Print Post Print Post  
We have been debating the solution to this particular problem for quite some time now.
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged
 
Carl Underwood
Senior Member
Members
*****
Offline



Posts: 1351
Location: New Hampshire
Joined: Mar 11th, 2003
Re: Add & Search tabs open at same time
Reply #3 - Apr 2nd, 2004 at 2:30pm
Print Post Print Post  
8) Cool. As long as you know about it, I'm relieved and confident you will do what is best. Smiley
  


Carl Underwood
CDU Computer Consulting LLC
Epsom, New Hampshire
Back to top
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: Add & Search tabs open at same time
Reply #4 - Apr 2nd, 2004 at 2:43pm
Print Post Print Post  
If there is anything you can do to try to reproduce the "pure virtual" error, I would appreciate it. Those are rare and usually confined to timing issues.
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged
 
Carl Underwood
Senior Member
Members
*****
Offline



Posts: 1351
Location: New Hampshire
Joined: Mar 11th, 2003
Re: Add & Search tabs open at same time
Reply #5 - Apr 2nd, 2004 at 4:55pm
Print Post Print Post  
I just tried to reproduce the "pure virtual" error, but I haven't seen it again. I will let you know if it turns up at some point.
  


Carl Underwood
CDU Computer Consulting LLC
Epsom, New Hampshire
Back to top
IP Logged