Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP 5 - UDF in report writer
Message
De
14/05/1997 11:23:52
Hang Zhou
China System Corp.
Nanjing, Chine
 
 
À
13/05/1997 11:31:42
Information générale
Forum:
Visual FoxPro
Catégorie:
Groupes d'usagers
Divers
Thread ID:
00031975
Message ID:
00032190
Vues:
36
Hello : 1. Preview is correct and print is wrong : If you have no error in coding(I mean Use Transform() correctly), it maybe FoxPro's bug. FoxPro has several bugs in report preview, printing(especially in WinNT) in version 5.0, But FoxPro 5.0a has corrected most of it. 2. I think you must return a charactor type value from UDF method, If you want to use some calculation such as sum, average and etc. The fact is : you want to sum or average several character type value, so the error message will be promoted. The right way is : define a variable without dealing with UDF method, just the field with some calculation, when you put the variable into field, the expression can be the variable's name with UDF method, like this : Variable's expression : field1, calculation is sum or average; Field's expression : UDF(variable's name) calculation is nothing. I hope it can help you. Zhou hang May 14,1997
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform