Re: XAP programming question...>


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]

Posted by Tom Fulton on January 24, 2013 at 15:31:43:

In Reply to: Re: XAP programming question...> posted by Jim Guerber on January 24, 2013 at 14:23:16:

Hmmm, so now I'm confused. My program isn't passing anything - this file is simply relaying information back to the sender ( a Motorola handheld terminal that scanned a warehouse bin barcode and the serial numbers of the fabric bolts in that bin ) with the bin number and the number of bolts whose locations were just updated. One shot every time the program is called. Here's the code:
flnm12$ = 'bin' + partition$ + '.xml'
close (xml) & erase flnm12$,excp=1000
1000 !
create flnm12$,dir='tmp',excp=1100
1100 !
open (xml) flnm12$
I should have a single line in the return file with a bin ID and the number of bolts updated. What's happening is that subsequent calls of the program are getting a repeated partition number, the program is failing on the erase because the file is open(?!?!) and I'm finding a file with multiple entries in it. If partition$ is unique, how can I wind up with an erase exception on the file? Very strange.....


Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

What is the name of the main Signature System's Product?  

Comments:

Optional Link URL:
Link Title:
Optional Image URL:

You may attach up to 5 files to your followup (see below):





Each file can be a maximum of 1MB in length Uploaded files will be purged from the server on a regular basis.


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]