APAR status
Closed as suggestion for future release.
Error description
PROBLEM: The macro containing 'FileExists' method does not return 'OK' message, when a file exists. . SCENARIO: 01. Create a file 'vfl.txt' in C folder. 02. Open CATIA. 02. Run the PMR53698.catvba. . RESULT: Although there is 'vfl.txt' file, but No message. . EXPECTED RESULT: When the file 'c:\vfl.txt' exists , then macro should return an OK message. . Observation: If the second line of the macro is edited to 'Dim Exists ' from 'Dim Exists As Boolean', macro gives the OK message. .
Local fix
Problem summary
Problem conclusion
Temporary fix
Comments
null ==========*===========*========== "There is a known limitation concerning the usage of the Boolean type in the V5 Automation methods invoked from VBA. In V5 applications, the Boolean type is defined as an 'unsigned char' where the VBA definition is a short. When a V5 method returns True, the returned integer value is 1, though VBA is expecting -1. Because of this difference, the following VBA code will not work as expected." . Documetation Reference: CAA V5 Encyclopedia Automation Home Middleware About VB, VBA, Debug, and Portability .
APAR Information
APAR number
HD64558
Reported component name
CATIA V5 NT>XP
Reported component ID
569151000
Reported release
517
Status
CLOSED SUG
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2007-05-25
Closed date
2007-05-31
Last modified date
2007-05-31
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fix information
Applicable component levels
[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSVJ2K","label":"CATIA"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"517","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]
Document Information
Modified date:
31 May 2007