Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Revising old code
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00614086
Message ID:
00614282
Vues:
14
>I'm debugging a foxpro6 application that was originally written in either dos or 2.6. The users would like me to change the background color and text color but I'm not sure if that is doable. The code just writes to the fox window using the "TEXT" command and does not use any forms.
>
>I'm going to suggest adding forms but the client may not want anything that's not broke left alone.
>
>Thanks for all your help,
>Sunshine

The app was build in DOS or 2.6 but dont forget that you are working in the 6th version of VFP.

Before your TEXT statement, you can change the foreground color with :
_screen.forecolor=rgb(0,255,0) && light green in this case

You can also change the bg color of the main vfp window using:
_screen.backcolor=rgb(0,0,0) && black

Be carefull, when you change the back color, the screen was cleaned up, so its better to set the backcolor before writing any TEXT to the screen...

HTH :)
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...


Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform