<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: concat and substring question</title><link>https://www.infopathdev.com:443/forums/thread/74451.aspx</link><pubDate>Tue, 24 Jan 2012 06:49:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:74451</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/74451.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=74451</wfw:commentRss><description>&lt;p&gt;Ah, well spotted.&amp;nbsp; I didn&amp;#39;t think it through completely.&amp;nbsp; Glad it worked otherwise!&lt;/p&gt;</description></item><item><title>Re: concat and substring question</title><link>https://www.infopathdev.com:443/forums/thread/74413.aspx</link><pubDate>Mon, 23 Jan 2012 20:05:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:74413</guid><dc:creator>jaxkookie</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/74413.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=74413</wfw:commentRss><description>&lt;p&gt;Thanks Jimmy, That was just about right, maybe was typo, the middle substring should be&lt;/p&gt;
&lt;p&gt;substring(substring-after(TitleCase, &amp;#39; &amp;#39;), 1, 1)&lt;/p&gt;
&lt;p&gt;else it works perfectly.&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;</description></item><item><title>Re: concat and substring question</title><link>https://www.infopathdev.com:443/forums/thread/74401.aspx</link><pubDate>Mon, 23 Jan 2012 17:55:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:74401</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/74401.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=74401</wfw:commentRss><description>&lt;p&gt;How about this:&lt;/p&gt;
&lt;p&gt;concat(substring(TitleCase, 1, 1), substring(substring-after(TitleCase, &amp;#39; &amp;#39;), 2, 1), substring(substring-after(TitleCase, &amp;quot;+&amp;quot;), 2, 1))&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>concat and substring question</title><link>https://www.infopathdev.com:443/forums/thread/74397.aspx</link><pubDate>Mon, 23 Jan 2012 16:28:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:74397</guid><dc:creator>jaxkookie</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/74397.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=74397</wfw:commentRss><description>&lt;p&gt;I have several forms where I generate a ticket number. the form type is part of the ticket number. I want to get the first letter of each word from the form type, but I believe I may need some kind of an if statement. for example here are 4 types&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;div&gt;Primary&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Primary + Transportation&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Transportation&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Other&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;what I need to return is &lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;div&gt;P&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;P+T&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;T&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;O&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;there may also be some types with a hyphen.&lt;/p&gt;
&lt;p&gt;Is there a way to check for a specific character or count spaces and when greater than 1 I can do something like this:&lt;/p&gt;
&lt;p&gt;concat(substring(TitleCase, 1, 1), &amp;quot;+&amp;quot;, substring(substring-after(TitleCase, &amp;quot;+&amp;quot;), 2, 1))&lt;/p&gt;
&lt;p&gt;and when no spaces I can do this:&lt;/p&gt;
&lt;p&gt;substring(TitleCase, 1, 1)&lt;/p&gt;
&lt;p&gt;Unless I am way off and there is a simpler way.&lt;/p&gt;</description></item></channel></rss>