Information générale
Catégorie:
Groupes d'usagers
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement