fbpx

Creating a field with a number to use it as index

August 10, 2018
  Recently, a user has posted an interesting question in this website forum:  
I’m writing to a text file. Here’s my “Text to insert”: ‘1’,'<%customerID%>’,'<%customerID%>’,”,”,”,”,’ADMIN’,'<%shipToID%>’,”,”,”,”,N’ I’d like some way to increment the “1” with each successive line I extract from the e-mail…. I’ve been trying to create a static field above, and increment it.. tried a script & do it in C#… Help!!! and Thanks, Rich
In this case, the user wanted an index value to write to a text file but it may also happen that you need an index value to insert to a database table. If doing so note that database tables can generate their own index when the SQL INSERT command is sent. But you can also provide them your own index value manually if you want to.   For example, if we retrieve the following fields from an incoming email:   read more …

© 2008-2021   FrozenFrog Software    PAD file     Privacy Policy & Terms of Use