Issue 97235 - With..End With does not work with user-defined Type
Summary: With..End With does not work with user-defined Type
Status: CLOSED NOT_AN_OOO_ISSUE
Alias: None
Product: General
Classification: Code
Component: scripting (show other issues)
Version: OOo 3.0
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: ab
QA Contact: issues@framework
URL:
Keywords: oooqa
Depends on:
Blocks:
 
Reported: 2008-12-13 19:42 UTC by etfloyd
Modified: 2008-12-13 23:07 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Small document with macro demonstrating user-defined type With..End With bug (12.85 KB, application/vnd.oasis.opendocument.text)
2008-12-13 19:43 UTC, etfloyd
no flags Details
java error report (113.92 KB, text/plain)
2008-12-13 22:58 UTC, drewjensen.inbox
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description etfloyd 2008-12-13 19:42:29 UTC
User-defined types do not retain values set within a "With...End With" block. A
small document demonstrating the problem is attached.
Comment 1 etfloyd 2008-12-13 19:43:53 UTC
Created attachment 58799 [details]
Small document with macro demonstrating user-defined type With..End With bug
Comment 2 Regina Henschel 2008-12-13 21:25:26 UTC
You have to write a dot inside the with statement in front of the object
property, for example .key1 instead of key1. You can avoid such errors using the
directive Option Explicit. Than you would have got an error "key1" is not defined.
Comment 3 drewjensen.inbox 2008-12-13 22:58:46 UTC
Created attachment 58801 [details]
java error report
Comment 4 drewjensen.inbox 2008-12-13 23:00:02 UTC
Sorry attached file to wrong Issue
Comment 5 Regina Henschel 2008-12-13 23:07:31 UTC
closing, no error in OOo