<div> So I have to use 'rn' as the variable and it will work?</div>
<div> Basically same thing I'm doing I just have to replace my 'ce' variable with 'rn'?<br><br></div>
<div class="gmail_quote">On Fri, Feb 3, 2012 at 9:27 AM, Richard Kreiss <span dir="ltr"><<a href="mailto:rkreiss@verizon.net">rkreiss@verizon.net</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">Top post from phone:<br><br>To get the new record number after the lookup free add rn=new(@rn). This will be the new record number.<br>
<br>Be careful about record numbers as Filepro will add new records to deleted records. So it is possible that a new record may be added which has a lower record number the the highest available record number in the file.<br>
<br>Richard<br>Sent from my iPhone<br>
<div>
<div></div>
<div class="h5"><br>On Feb 3, 2012, at 9:06 AM, "<a href="mailto:scooter6@gmail.com">scooter6@gmail.com</a>" <<a href="mailto:scooter6@gmail.com">scooter6@gmail.com</a>> wrote:<br><br>> I have a process that is adding a record to a file and I need to capture<br>
> the record number that is being added<br>> i.e.<br>><br>> If = 6 gt @td<br>> Then = lookup new = file r=free -e<br>><br>> Then = ce(10,*)=new(@rn)<br>><br>><br>> I need 'ce' equal to the record number that is getting added to 'file' so I<br>
> can do another free lookup that needs<br>> the newly created record number in 'file'<br>><br>> Is this possible?<br>> I have tried setting ce after I do a 'write' new but that didn't work either<br>
><br>> Anyone?<br>><br>> Scott<br>> PDM<br></div></div>> -------------- next part --------------<br>> An HTML attachment was scrubbed...<br>> URL: <a href="http://mailman.celestial.com/pipermail/filepro-list/attachments/20120203/2a5a65de/attachment.html" target="_blank">http://mailman.celestial.com/pipermail/filepro-list/attachments/20120203/2a5a65de/attachment.html</a><br>
> _______________________________________________<br>> Filepro-list mailing list<br>> <a href="mailto:Filepro-list@lists.celestial.com">Filepro-list@lists.celestial.com</a><br>> Subscribe/Unsubscribe/Subscription Changes<br>
> <a href="http://mailman.celestial.com/mailman/listinfo/filepro-list" target="_blank">http://mailman.celestial.com/mailman/listinfo/filepro-list</a><br></blockquote></div><br>