<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/">
<channel>
<title>DisplayFusion RSS: String Array &amp; Switch</title>
<atom:link href="https://www.displayfusion.com/Discussions/RSS/?TopicID=018c554a-d5e9-74cd-ace7-fcf01dc0e199" rel="self" type="application/rss+xml" />
<link>https://www.displayfusion.com/Discussions/RSS/?TopicID=018c554a-d5e9-74cd-ace7-fcf01dc0e199</link>
<description>DisplayFusion RSS: String Array &amp; Switch</description>
<lastBuildDate>Mon, 06 Apr 2026 15:14:09 GMT</lastBuildDate>
<language>en</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>https://www.displayfusion.com/Discussions/RSS/?TopicID=018c554a-d5e9-74cd-ace7-fcf01dc0e199</generator>
<item>
<title>RE: String Array &amp; Switch</title>
<link>https://www.displayfusion.com/Discussions/View/string-array-switch/?ID=018c554a-d5e9-74cd-ace7-fcf01dc0e199#2</link>
<pubDate>Mon, 11 Dec 2023 21:40:04 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/string-array-switch/?ID=018c554a-d5e9-74cd-ace7-fcf01dc0e199#2</guid>
<category>DisplayFusion</category>
<description><![CDATA[Looks like you've got square brackets there instead of curly brackets. Should be like this:
Code
Copy
Select All
string[] items = { "Item1", "Item2", "Item3", "Item4" };]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Looks like you've got square brackets there instead of curly brackets. Should be like this:<br/>
<br/>
<div id="" class="col-md-12 BoxWrap"><div class="Box table-responsive"><a name="code" style="width:0; height:0;"></a><h2 class="TableTitle" style="border:0"><div class="TableTitleText">Code</div><div class="TitleButtons"><div class="TableTitleButton"><a href="#" onclick="return false;" data-clipboard-target="#code019d635bbcbd73329951d3c8406e7f26" class="ClipboardCopyControl"><img src="https://www.displayfusion.com/MediaCommon/SVGs/FontAwesome/clone.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;vertical-align:middle !important;width:auto;max-width:16px;height:16px;" /><span class="Text">Copy</span></a></div><div class="TableTitleButton"><a href="#" onclick="bfs.util.codeEditorSelectAll('code019d635bbcbd73329951d3c8406e7f26Js'); return false;"><img src="https://www.displayfusion.com/MediaCommon/SVGs/FontAwesome/square-check.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;vertical-align:middle !important;width:auto;max-width:16px;height:16px;" /><span class="Text">Select All</span></a></div></div></h2><div class="TableTitleContent table-responsive"><div class="AceEditorWrapper" style="border-top:solid 1px var(--color-default-border);padding:0"><pre id="code019d635bbcbd73329951d3c8406e7f26Js" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">string[] items = { "Item1", "Item2", "Item3", "Item4" };</pre><textarea id="code019d635bbcbd73329951d3c8406e7f26" name="code019d635bbcbd73329951d3c8406e7f26" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div>
</div>
]]></content:encoded>
<media:thumbnail url="https://www.displayfusion.com/Discussions/Download/?ID=018c554a-d5eb-70b0-afbb-83b4a8a46a81"/>
</item>
<item>
<title>String Array &amp; Switch</title>
<link>https://www.displayfusion.com/Discussions/View/string-array-switch/?ID=018c554a-d5e9-74cd-ace7-fcf01dc0e199</link>
<pubDate>Sun, 10 Dec 2023 19:53:37 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/string-array-switch/?ID=018c554a-d5e9-74cd-ace7-fcf01dc0e199</guid>
<category>DisplayFusion</category>
<description><![CDATA[I am attempting to create a C# string array to use as options for the .GetUserInputList, but am getting compile errors in the DF editor.     Can a single-dimensional array be used like this with .GetUserInputList?    If so, can a specific array element be referenced in the Switch?
Hope this is j...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
I am attempting to create a C# string array to use as options for the .GetUserInputList, but am getting compile errors in the DF editor.     Can a single-dimensional array be used like this with .GetUserInputList?    If so, can a specific array element be referenced in the Switch?<br/>
<br/>
Hope this is just a syntax error.
</div>
]]></content:encoded>
<media:thumbnail url="https://www.displayfusion.com/Discussions/Download/?ID=018c554a-d5eb-70b0-afbb-83b4a8a46a81"/>
</item>
</channel>
</rss>