Data Access Worldwide Knowledge Base
Article ID 2107 Article Title INFO: Uninitialized Integer in Web Applications Article URL http://www.dataaccess.com/kbasepublic/KBPrint.asp?ArticleID=2107 KBase Category VDF11 Date Created 04/11/2005 Last Edit Date 04/04/2006
Article Text
An uninitialized integer of a published web application function now returns 0 (zero) while in previous revisions blank was returned.
You can check this by adding some code to the Order web sample as follows:
- Open customer.wo
- Add the following function
Function MyTestFunc Returns Integer
Integer iErr
Function_Return iErr
End_Function // MyTestFunc
- Publish the function
- Compile the wo
- Open customer.asp
- Add the following code
MyErr=oCustomer.Call("Get_MyTestFunc")
Response.write ("Uninitialized Err <" & MyErr & "> <br />")
When running Order Web Application in Visual DataFlex 11.0, "Uninitialized Err <0>" will be displayed. When running that same code in Visual DataFlex 10.1 (or earlier), "Uninitialized Err <> " will be displayed.
Contributed By:
Wil van Antwerpen
Company: Antwise Solutions
email: info@antwise.com
Web Site: http://www.antwise.com
Web Links Related to this Article
File KBase2107Files.zip
URL=http://www.dataaccess.com/KBasePublic/Files/2107.KBase2107Files.zip
Email this Article
Email this Article to a Colleague
Send Feedback on this Article to Data Access Worldwide
Copyright ©2010 Data Access Corporation. All rights reserved.
The information provided in the Data Access Technical Knowledge Base is provided "as is" without warranty of any kind. Data Access Corporation disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. In no event shall Data Access Corporation or its suppliers be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages, even if Data Access Corporation or its suppliers have been advised of the possibility of such damages. Some states do not allow the exclusion or limitation of liability for consequential or incidental damages so the foregoing limitation may not apply.