Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FPD26 commands being skipped over in Win XP
Message
De
15/05/2007 07:01:52
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Titre:
FPD26 commands being skipped over in Win XP
Versions des environnements
Visual FoxPro:
FoxPro Dos
OS:
Windows XP SP2
Divers
Thread ID:
01225453
Message ID:
01225453
Vues:
88
I have to maintain a 2.6 system. In the past it has been printing the results of a run to the printer. Recently many clients have got USB printer connections and the old system, of course, can't recognise one. Rather than altering each clien's computer set-up it was decided to print the report to a text file, which can be printed off at leisure.

Trouble is, one (new) client says that the text file is created but that it's empty of any details. Now the file is written to, emulating the old version (where ? and ?? were used) thus:
If llTextFileOK
    = FPUTS( lnFileHdl, "Summary of application :"+alltrim(xdesc)+", included in file")
    = FPUTS( lnFileHdl, thisziph+" downloaded on "+dtoc(date()))
    ...
    = FPUTS( lnFileHdl, "")												
    = FPUTS( lnFileHdl, "********************************************")
    = FPUTS( lnFileHdl, "* The above application contains :         *")
    = FPUTS( lnFileHdl, "* Passenger records :"+str(tnumber,10,0) + "  :         *")
    = FPUTS( lnFileHdl, "* Total fare  :"+str(tfare,10,0)+" pence            *")
    ... etc
EndIf 	&& llTextFileOK	
Now in the past I've had to put delays into certain FP code because the computer was running too fast for the old code and was skipping certain commands, but I can't remember whether that was FPD26 code or VFP3. I haven't visited the client but I expect he has a fast new puter, as it has no floopy drive. Could this be a reason the FPUTS commands are not writing to the file, and that putting in wee delays will sort it?

I need to get this right as it's a new client who's not been impressed at the failure of the system to report his output and I can't afford to send him a new system that equally doesn't work.

'ppreciate it ASAP if you can :-)

Terry
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform