<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Proper Case Function in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/proper-case-function/qaa-p/13846949#M4877792</link>
    <description>&lt;P&gt;Try this&lt;/P&gt;
&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;&lt;/SPAN&gt;CREATE FUNCTION Proper(in @Text long varchar)
RETURNS long varchar
BEGIN
   declare @Reset   bit;
   declare @Ret   long varchar;
   declare &lt;A href="http://sqlanywhere-forum.sap.com/users/137/integrated-login"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/137/integrated-login"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/137/integrated-login"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/137/integrated-login"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/137/integrated-login"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/137/integrated-login"&gt;@i&lt;/A&gt;   int;
   declare &lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;@c&lt;/A&gt;   char(1);

   set @Reset = 1;
   set &lt;A href="http://sqlanywhere-forum.sap.com/users/137/integrated-login"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/137/integrated-login"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/137/integrated-login"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/137/integrated-login"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/137/integrated-login"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/137/integrated-login"&gt;@i&lt;/A&gt;=1;
   set @Ret = '';

while (&lt;A href="http://sqlanywhere-forum.sap.com/users/137/integrated-login"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/137/integrated-login"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/137/integrated-login"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/137/integrated-login"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/137/integrated-login"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/137/integrated-login"&gt;@i&lt;/A&gt; &amp;lt;= len(@Text)) loop
    set &lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;@c&lt;/A&gt;= substring(@Text,&lt;A href="http://sqlanywhere-forum.sap.com/users/137/integrated-login"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/137/integrated-login"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/137/integrated-login"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/137/integrated-login"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/137/integrated-login"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/137/integrated-login"&gt;@i&lt;/A&gt;,1);
    set @Ret = @Ret + case when @Reset=1 then UPPER(&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;@c&lt;/A&gt;) else LOWER(&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;@c&lt;/A&gt;) end;
    set @Reset = case when &lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;@c&lt;/A&gt; like '[a-zA-Z]' then 0 else 1 end;
    set &lt;A href="http://sqlanywhere-forum.sap.com/users/137/integrated-login"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/137/integrated-login"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/137/integrated-login"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/137/integrated-login"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/137/integrated-login"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/137/integrated-login"&gt;@i&lt;/A&gt; = &lt;A href="http://sqlanywhere-forum.sap.com/users/137/integrated-login"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/137/integrated-login"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/137/integrated-login"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/137/integrated-login"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/137/integrated-login"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/137/integrated-login"&gt;@i&lt;/A&gt; +1;
end loop;

   return @Ret;
END;
&lt;/PRE&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 11 Apr 2018 10:10:11 GMT</pubDate>
    <dc:creator>Chris26</dc:creator>
    <dc:date>2018-04-11T10:10:11Z</dc:date>
    <item>
      <title>Proper Case Function</title>
      <link>https://community.sap.com/t5/technology-q-a/proper-case-function/qaq-p/13846948</link>
      <description>&lt;P&gt;I'm trying to create a function that produces an output of a string in "Proper Case." I have an attempt put together from other works I've found online, but am not having success. I'm not extremely familiar with SQL Anywhere and was hoping someone could lend a hand.&lt;/P&gt;
&lt;P&gt;Here's what I have, but it errors at line 5.&lt;/P&gt;
&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;&lt;/SPAN&gt;CREATE FUNCTION Proper(in @Text long varchar)
RETURNS long varchar
AS
BEGIN
   declare @Reset   bit;
   declare @Ret   long varchar;
   declare &lt;A href="http://sqlanywhere-forum.sap.com/users/15/ismael" target="_blank"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/15/ismael" target="_blank"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/15/ismael" target="_blank"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/15/ismael" target="_blank"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/15/ismael" target="_blank"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/15/ismael" target="_blank"&gt;@i&lt;/A&gt;   int;
   declare &lt;A href="http://sqlanywhere-forum.sap.com/users/69/cameron-taggart" target="_blank"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/69/cameron-taggart" target="_blank"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/69/cameron-taggart" target="_blank"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/69/cameron-taggart" target="_blank"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/69/cameron-taggart" target="_blank"&gt;@c&lt;/A&gt;   char(1);

select @Reset = 1, &lt;A href="http://sqlanywhere-forum.sap.com/users/15/ismael" target="_blank"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/15/ismael" target="_blank"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/15/ismael" target="_blank"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/15/ismael" target="_blank"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/15/ismael" target="_blank"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/15/ismael" target="_blank"&gt;@i&lt;/A&gt;=1, @Ret = '';

while (&lt;A href="http://sqlanywhere-forum.sap.com/users/15/ismael" target="_blank"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/15/ismael" target="_blank"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/15/ismael" target="_blank"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/15/ismael" target="_blank"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/15/ismael" target="_blank"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/15/ismael" target="_blank"&gt;@i&lt;/A&gt; &amp;lt;= len(@Text))
    select &lt;A href="http://sqlanywhere-forum.sap.com/users/69/cameron-taggart" target="_blank"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/69/cameron-taggart" target="_blank"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/69/cameron-taggart" target="_blank"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/69/cameron-taggart" target="_blank"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/69/cameron-taggart" target="_blank"&gt;@c&lt;/A&gt;= substring(@Text,&lt;A href="http://sqlanywhere-forum.sap.com/users/15/ismael" target="_blank"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/15/ismael" target="_blank"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/15/ismael" target="_blank"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/15/ismael" target="_blank"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/15/ismael" target="_blank"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/15/ismael" target="_blank"&gt;@i&lt;/A&gt;,1),
        @Ret = @Ret + case when @Reset=1 then UPPER(&lt;A href="http://sqlanywhere-forum.sap.com/users/69/cameron-taggart" target="_blank"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/69/cameron-taggart" target="_blank"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/69/cameron-taggart" target="_blank"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/69/cameron-taggart" target="_blank"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/69/cameron-taggart" target="_blank"&gt;@c&lt;/A&gt;) else LOWER(&lt;A href="http://sqlanywhere-forum.sap.com/users/69/cameron-taggart" target="_blank"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/69/cameron-taggart" target="_blank"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/69/cameron-taggart" target="_blank"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/69/cameron-taggart" target="_blank"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/69/cameron-taggart" target="_blank"&gt;@c&lt;/A&gt;) end,
        @Reset = case when &lt;A href="http://sqlanywhere-forum.sap.com/users/69/cameron-taggart" target="_blank"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/69/cameron-taggart" target="_blank"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/69/cameron-taggart" target="_blank"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/69/cameron-taggart" target="_blank"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/69/cameron-taggart" target="_blank"&gt;@c&lt;/A&gt; like '[a-zA-Z]' then 0 else 1 end,
        &lt;A href="http://sqlanywhere-forum.sap.com/users/15/ismael" target="_blank"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/15/ismael" target="_blank"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/15/ismael" target="_blank"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/15/ismael" target="_blank"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/15/ismael" target="_blank"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/15/ismael" target="_blank"&gt;@i&lt;/A&gt; = &lt;A href="http://sqlanywhere-forum.sap.com/users/15/ismael" target="_blank"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/15/ismael" target="_blank"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/15/ismael" target="_blank"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/15/ismael" target="_blank"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/15/ismael" target="_blank"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/15/ismael" target="_blank"&gt;@i&lt;/A&gt; +1
   return @Ret;
END;
&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 11 Apr 2018 10:02:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/proper-case-function/qaq-p/13846948</guid>
      <dc:creator>JWise93</dc:creator>
      <dc:date>2018-04-11T10:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: Proper Case Function</title>
      <link>https://community.sap.com/t5/technology-q-a/proper-case-function/qaa-p/13846949#M4877792</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;
&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;&lt;/SPAN&gt;CREATE FUNCTION Proper(in @Text long varchar)
RETURNS long varchar
BEGIN
   declare @Reset   bit;
   declare @Ret   long varchar;
   declare &lt;A href="http://sqlanywhere-forum.sap.com/users/137/integrated-login"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/137/integrated-login"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/137/integrated-login"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/137/integrated-login"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/137/integrated-login"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/137/integrated-login"&gt;@i&lt;/A&gt;   int;
   declare &lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;@c&lt;/A&gt;   char(1);

   set @Reset = 1;
   set &lt;A href="http://sqlanywhere-forum.sap.com/users/137/integrated-login"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/137/integrated-login"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/137/integrated-login"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/137/integrated-login"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/137/integrated-login"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/137/integrated-login"&gt;@i&lt;/A&gt;=1;
   set @Ret = '';

while (&lt;A href="http://sqlanywhere-forum.sap.com/users/137/integrated-login"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/137/integrated-login"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/137/integrated-login"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/137/integrated-login"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/137/integrated-login"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/137/integrated-login"&gt;@i&lt;/A&gt; &amp;lt;= len(@Text)) loop
    set &lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;@c&lt;/A&gt;= substring(@Text,&lt;A href="http://sqlanywhere-forum.sap.com/users/137/integrated-login"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/137/integrated-login"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/137/integrated-login"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/137/integrated-login"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/137/integrated-login"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/137/integrated-login"&gt;@i&lt;/A&gt;,1);
    set @Ret = @Ret + case when @Reset=1 then UPPER(&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;@c&lt;/A&gt;) else LOWER(&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;@c&lt;/A&gt;) end;
    set @Reset = case when &lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/911/christian-hamers"&gt;@c&lt;/A&gt; like '[a-zA-Z]' then 0 else 1 end;
    set &lt;A href="http://sqlanywhere-forum.sap.com/users/137/integrated-login"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/137/integrated-login"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/137/integrated-login"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/137/integrated-login"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/137/integrated-login"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/137/integrated-login"&gt;@i&lt;/A&gt; = &lt;A href="http://sqlanywhere-forum.sap.com/users/137/integrated-login"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/137/integrated-login"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/137/integrated-login"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/137/integrated-login"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/137/integrated-login"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/137/integrated-login"&gt;@i&lt;/A&gt; +1;
end loop;

   return @Ret;
END;
&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 11 Apr 2018 10:10:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/proper-case-function/qaa-p/13846949#M4877792</guid>
      <dc:creator>Chris26</dc:creator>
      <dc:date>2018-04-11T10:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: Proper Case Function</title>
      <link>https://community.sap.com/t5/technology-q-a/proper-case-function/qaa-p/13846951#M4877794</link>
      <description>&lt;P&gt;That did it, thanks a ton!&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 10:14:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/proper-case-function/qaa-p/13846951#M4877794</guid>
      <dc:creator>JWise93</dc:creator>
      <dc:date>2018-04-11T10:14:36Z</dc:date>
    </item>
    <item>
      <title>Re: Proper Case Function</title>
      <link>https://community.sap.com/t5/technology-q-a/proper-case-function/qaa-p/13846950#M4877793</link>
      <description>&lt;P&gt;This would be much faster but does not take into account that you want to keep line feeds or other special characters. Depends on your input string.&lt;/P&gt;
&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;&lt;/SPAN&gt;BEGIN 
    declare theText long varchar = 'this Is my Text';
    declare theDelimiter char(1) = ' ';

    select list( theProperWords, theDelimiter order by line_num)
    from (
        select string(upper(left(row_value,1)), lower(substr(row_value,2))) theProperWords,
               line_num
        from sa_split_list(theText, theDelimiter )
    ) as wordList;
END
&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 12 Apr 2018 06:31:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/proper-case-function/qaa-p/13846950#M4877793</guid>
      <dc:creator>thomas_duemesnil</dc:creator>
      <dc:date>2018-04-12T06:31:25Z</dc:date>
    </item>
  </channel>
</rss>

