Apache OpenOffice (AOO) Bugzilla – Issue 73830
VBA "LIKE" implementation
Last modified: 2013-02-24 21:01:20 UTC
attached is an implementation of "LIKE" which seems sufficient to emulate the MS VBA "LIKE"
Created attachment 42427 [details] implementation of LIKE
one thing I noticed on running it is that is doesn't deal with string literals e.g. if "somethingelse" like "something*" then msgbox "hurray" yields compile error "inadmissable data or value type...." I think this is to do with that folding method I mentioned previously, but really I'm not sure :-( ( I'll try dig more later )
Created attachment 42604 [details] how about this instead, don't try and constant fold the LIKE
looks good I'll add it to ooo-build & cws npower7 (about to be created)
Created attachment 43475 [details] test document
fixed
Note to tester, please use the test document (LikeTest.ods ) tests are based of examples from msdn
i believed the issue is for 2.3 as it is already fixed. Thanks
.
for qa
changed target
Ran test document (LikeTest.ods) on released SLED10 SP1 OOo 2.1.14, Windows OOo 2.1 (Build 2007-06-04). Below are the results returned in the msgbox after pressing the CommandButton1 • Test Results • ============= • test 6 failed got True expected False • test 8 failed got False expected True • • Tests passed: 8 • Tests failed: 2 ‣ Ran test document (LikeTest.ods) on cws-npower7-m217. Below are the results returned in the msgbox after pressing the CommandButton1 • Test Results • ============= • Tests passed: 10 • Tests failed: 0 ‣ RESULT: Test Passed
This issue is closed automatically and wasn't rechecked in a current version of OOo. The fixed issue should be integrated in OOo since more than half a year. If you think this issue isn't fixed in a current version (OOo 3.1), please reopen it and change the field 'Target Milestone' accordingly. If you want to download a current version of OOo => http://download.openoffice.org/index.html If you want to know more about the handling of fixed/verified issues => http://wiki.services.openoffice.org/wiki/Handle_fixed_verified_issues