Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP 5 - UDF in report writer
Message
From
14/05/1997 11:23:52
Hang Zhou
China System Corp.
Nanjing, China
 
 
To
13/05/1997 11:31:42
General information
Forum:
Visual FoxPro
Category:
User groups
Miscellaneous
Thread ID:
00031975
Message ID:
00032190
Views:
38
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
Map
View

Click here to load this message in the networking platform