To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=51187
User sw changed the following: What |Old value |New value ================================================================================ Status|NEW |RESOLVED -------------------------------------------------------------------------------- Resolution| |WORKSFORME -------------------------------------------------------------------------------- ------- Additional comments from [EMAIL PROTECTED] Fri Aug 5 01:29:13 -0700 2005 ------- sw->ckruk: the macro works as expected ... you use drool=mySelection.getString() If (asc(LTrim(drool)) > 90) then (*) mySelection.setString(UCase(left(drool,1))+LCase(mid(drool,2))) Elseif asc(right(RTrim(drool),1)) < 90 then (**) myselection.setstring(LCase(drool)) Else (***) mySelection.setString(UCase(drool)) End If you start with xyz , so you land in (*) because asc(x)>90 ... this leads to Xyz, so you land in (***) bacause asc(X)<90 and asc(z)>90 ... this leads you to XYZ, where you will stay since asc(Z)=90 and so you never reach (**) when you start with Abc. you land at (**) because asc(A)<90 and asc(.)<90 ... this leads you to abc. >From my point of view OOo Basic works just as expected, do I overlook >something ? --------------------------------------------------------------------- Please do not reply to this automatically generated notification from Issue Tracker. Please log onto the website and enter your comments. http://qa.openoffice.org/issue_handling/project_issues.html#notification --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]