Normal Topic Ditto limit? (Read 618 times)
Gruff
Member
*
Offline



Posts: 3
Joined: Nov 18th, 2009
Ditto limit?
Feb 5th, 2015 at 3:56pm
Print Post Print Post  
Is there a limit on the amount of times Ditto can be used to add records?

We have a serial data-base that has a first field with Quantity in it set by default to 1. If you fill out the record and hit F10, the next record starts by Ditto-ing the Quantity field and if it is greater than 1 then Dittos half the previous forms field. It then decrements the Quantity field by 1 and makes the serial number field = @number(1). Finally it runs a macro to F10.

The result is that when you change the Quantity to more than 1 and fill out the form it will ripple through creating "Quantity" amount of records with unique serial numbers.

The only problem is that it stops every 51 adds and resets the Quantity in the new blank record to 1.

If you F9 then F10 manually, it will ripple through and add another 51.


I guess the question is, is this done on purpose to stop some naive programmer writing himself into a loop? If so, can a suitably warned programmer disable this feature? Or at least change the 51 to 200 which would probably suit our needs.


Thanks in advance for any advice
  
Back to top
 
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: Ditto limit?
Reply #1 - Feb 5th, 2015 at 6:18pm
Print Post Print Post  
No. Its not an arbitrary limit on ditto.

I recommend that you look into some of the other SBasic commands for making and populating records. Many of them will give you quite a bit more precision and speed than automating the form.

If you want to stick with your current approach, you may have to post the relevant SBasic code, so we can look into what might be going astray.
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged