Hello All,
Hopefully this is the correct forum...
I have some code that creates a text (dat) for a billing process
created in Access2000, I add an Eof of Line marker to each line item
and then add an End of File marker "" (the requirement is a
Hexidecimal EOF marker) - that tells the reader program that it's
done. The markers are a requirement for the file.
Just in the past two weeks the end of file marker is no longer reads
and comes back with an error and shows that the "" is now a right
facing arrow . Here is the code that creates the marker, I have had no
probelms with any windows OS so far and I can't reproduce the clients
error unless the reader is on a unix machine or the end user has
changed to Access 2007
Is there a better, more universal way to create this? Any help would
be appreciated.
Many thanks
John
strLineWrite = strVendor & strApp & strHealth & strVersion &
strInvoice & strLine & strInvoiceDate & strDeliveryDate & strStartDate
& strEndDate & strDeviceCat & strSerial & strQuantity & strTotBilled &
strCarrierAmmt & strCustomerAmount & strBenCode
1530 Print #1, strLineWrite
1540 .MoveNext
1550 Loop
1560 End With
1570 Print #1, ""
1580 Close #1
1590 MsgBox "File Created" 2 3113
flymo wrote:
Hello All,
Hopefully this is the correct forum...
I have some code that creates a text (dat) for a billing process
created in Access2000, I add an Eof of Line marker to each line item
and then add an End of File marker "" (the requirement is a
Hexidecimal EOF marker) - that tells the reader program that it's
done. The markers are a requirement for the file.
Just in the past two weeks the end of file marker is no longer reads
and comes back with an error and shows that the "" is now a right
facing arrow . Here is the code that creates the marker, I have had no
probelms with any windows OS so far and I can't reproduce the clients
error unless the reader is on a unix machine or the end user has
changed to Access 2007
Is there a better, more universal way to create this? Any help would
be appreciated.
Many thanks
John
strLineWrite = strVendor & strApp & strHealth & strVersion &
strInvoice & strLine & strInvoiceDate & strDeliveryDate & strStartDate
& strEndDate & strDeviceCat & strSerial & strQuantity & strTotBilled &
strCarrierAmmt & strCustomerAmount & strBenCode
1530 Print #1, strLineWrite
1540 .MoveNext
1550 Loop
1560 End With
1570 Print #1, ""
1580 Close #1
1590 MsgBox "File Created"
When I used to write files like this I used the ascii value or the chr()
of the ascii value. Look at ASC() and CHR() in help.
BTW...I think that something like a --is what the EOF file marker
looks like in Windows.
Beautiful Girl http://www.youtube.com/watch?v=zJLmmUYoPSo
Hello,
I tried using Chr$(26) as the end of file marker and I'm still getting
inconsistant readinfs from different machines. Some show a square
'' and others show '-->'. Any Windows 2000 machine is fine,
however XP machines have been inconsistant. This has to be a system
setting?
Any help would be appreciated.
John
On Jul 19, 2:07*pm, Salad <o...@vinegar.comwrote:
flymo wrote:
Hello All,
Hopefully this is the correct forum...
I have some code that creates a text (dat) for a billing process
created in Access2000, *I add an Eof of Line marker to each line item
and then add an End of File marker " " (the requirement is a
Hexidecimal EOF marker) - that tells the reader program that it's
done. *The markers are a requirement for the file.
Just in the past two weeks the end of file marker is no longer reads
and comes back with an error and shows that the " " is now a right
facing arrow . Here is the code that creates the marker, I have had no
probelms with any windows OS so far and I can't reproduce the clients
error unless the reader is on a unix machine or the end user has
changed to Access 2007
Is there a better, more universal way to create this? *Any help would
be appreciated.
Many thanks
John
strLineWrite = strVendor & strApp & strHealth & strVersion &
strInvoice & strLine & strInvoiceDate & strDeliveryDate & strStartDate
& strEndDate & strDeviceCat & strSerial & strQuantity & strTotBilled &
strCarrierAmmt & strCustomerAmount & strBenCode
1530 * * * * * * Print #1, strLineWrite
1540 .MoveNext
1550 * * * * Loop
1560 * * End With
1570 * * Print #1, " "
1580 * * Close #1
1590 * * MsgBox "File Created"
When I used to write files like this I used the ascii value or the chr()
of the ascii value. *Look at ASC() and CHR() in help.
BTW...I think that something like a --is what the EOF file marker
looks like in Windows.
Beautiful Girlhttp://www.youtube.com/watch?v=zJLmmUYoPSo
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Dino |
last post by:
dear all,
i've created an application for a customer where the customer can upload
..csv-files into a specified ftp-directory. on the server, a php-script,
triggered by a cronjob, reads all the...
|
by: spike |
last post by:
Im trying to write a program that should
read through a binary file searching for the character sequence "\name\"
Then it should read the characters following the "\name\" sequence
until a NULL...
|
by: spike |
last post by:
Im writing a program to search for a string in a binary file.
And it works. The problem is: It is sooo slow! how can i make it faster?
It takes 27 seconds just to search a 5 meg file.
I guess it...
|
by: Profetas |
last post by:
I have the following code that detects a
<c>
and
</c>
#include <stdio.h>
main(int argc, char *argv)
{
FILE* fp;
char data;
|
by: vim |
last post by:
hello everybody
Plz tell the differance between binary file and ascii
file...............
Thanks
in advance
vim
| |
by: Bill |
last post by:
Hello,
I'm trying to output buffer content to a file. I either get an access
violation error, or crazy looking output in the file depending on
which method I use to write the file. Can anyone...
|
by: lxyone |
last post by:
Using a flat file containing table names, fields, values whats the
best way of creating html pages?
I want control over the html pages ie
1. layout
2. what data to show
3. what controls to...
|
by: C. (http://symcbean.blogspot.com/) |
last post by:
On Aug 12, 7:08 am, long_way <yilongwei....@gmail.comwrote:
Hi,
Wouldn't it just be simpler to use Google maps?
I'm not overly familiar with greybox, but it should be fairly
straightforward...
|
by: TrevRex |
last post by:
Hello,
I work for a non-profit in San Diego as a GIS Specialist. I have had to teach myself about some scripting to create some dynamic maps, but I am still very limited in my skills, so I have...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
| |