Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Incrementing a # in a field /array

Status
Not open for further replies.

PBREP

MIS
Mar 14, 2003
75
US
Hi all

Well, I searched the internet for number incrementing (counter)tips for foxpro and all the example I see are database specific. What I what to do is a simple auto-increment procedure that will keep adding 1 in my display field (ref. array sa_cust[1]) when trigger. For example after the user clicks record the code will generate the next number. You see since I do not have access to the hardcode I have to rely on the arrays in the program. Any suggestions?

Thanks,

PM
 
It's not clear what exactly you do have access to...

this should work:

sa_cust[1] = sa_cust[1]+1

What more do you need?
 
Thanks wgcs; I must of took a ,stupid pill this morning :<)

Have a nice weekend!!!

~PB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top