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
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only