Home > Software engineering >  How to encode retain last shutdown before printing number, when starting up according to the origina
How to encode retain last shutdown before printing number, when starting up according to the origina

Time:09-22

The Static No As Integer
No=No + 1
The Print; "Residential property fee charging documents"; The Spc (25); No
The Print; "-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --"

CodePudding user response:

Print or exit, No value can be saved to a text or the registry, and then run, or the registry to read text, get printed record before,

CodePudding user response:

Can provide code? Thank you sincerely

CodePudding user response:

Write to the registry:
"Use which size", immediately put it into the registry, and then execute "print job";
To get down to the "print", first from the registry before the "number of" read out,
"According to its own rules" calculate again the next number is how much the,

The code "baidu", a lot of online...

CodePudding user response:

With monthly Numbers as Numbers is not more reasonable,
Serial number it made no sense, if documents typed stained or missing, retype it number is different,

CodePudding user response:

Written to the file can also,

CodePudding user response:

A lot of ways,

For example, if the print data from a database table, can add a Boolean fields Printed, Printed them after a record is True,

Computer to print the Select * From your - table Where Not Printed And... The Order By...

Such queries to record is not printed, if the order number, can be realized by the serial number to print,

CodePudding user response:

I now learn of the program, the original engineers to write ini file is used to record, start the next time the last time the content of the ini file to read first

CodePudding user response:

Ini
The registry
File
Can.
Program to shut down the time of writing the fixed position

CodePudding user response:

Increase in the database field to keep the print information advantage is that when you will print program and database replication to other machines continue to print, the information is complete,
  • Related