Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP 6.0 converter program makes a error on Line class's
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
VFP 6.0 converter program makes a error on Line class's
Divers
Thread ID:
00135239
Message ID:
00135239
Vues:
53
It seems that Visual FoxPro 6.0 converter program has a small error when converting Fox 2.6 screen files.
After converting a project most of the screens would not open. When I tried it gave me a error that said something like this.

Error loading file: record number X. linline3 < or one of its members >. ColorSource : Expression Evaluated to an illegal value.

The problem seem that the ‘line’ class was given a “ColorSource = 3” property. And this created the error. So with a bit of playing I came up with this program that you can select the converted form and it will remove the ColorSource property. Then the forms will open and run.

I don’t recall having this problem with Fox 5, so it may only be a Fox 6 problem. Please be sure and backup the files before hand. It will not work on FoxPro 2.6 screens before they are converted. (Those don’t have the ‘Class’ or the ‘Properities’ fields in the screen data files.

Hope this code help…
Don Peek
DFPeek@corp.olin.com


‘ Code starts here ………………………………………………………………………’


filename ="junk to get loop started"
do while not empty(filename)
filename = GETFILE("scx","Form File" , "Select",0,"Select a Form to Repair")
if empty(filename)
exit
endif
use (filename)
goto top && not needed but I do it anyway
do while not eof()
if class = 'line'
replace properties with strtran(properties,"ColorSource = 3"+chr(13)+chr(10),"")
endif
skip
enddo
Wait window "Repaired file:"+filename timeout 2
use
enddo
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform