m.arrunraj
29th September 2011, 08:10
hii!!
can any one post the code how to auto increment customer code.

anguraj
29th September 2011, 08:37
use before choice section with in this use add.set option here increment that customer code ....

JaapJD
29th September 2011, 09:31
Note that it depends on the fact whether or not you allow gaps in the numbers. You have also to mind the multi-user aspect.

m.arrunraj
29th September 2011, 12:16
i had one more problem.Am having my customer id in string.i want to convert it to long.Nw i want to auto increment the customer code when a new record is inserted.Could any one help me the coding.

bdittmar
29th September 2011, 14:53
i had one more problem.Am having my customer id in string.i want to convert it to long.Nw i want to auto increment the customer code when a new record is inserted.Could any one help me the coding.

Hello,

if your max. customer ID looks like "100001234" use lval to convert to a long, increment and convert back with str$.

Regards

m.arrunraj
30th September 2011, 08:24
thank you bernd got it..