Note that there are some explanatory texts on larger screens.

plurals
  1. POCant get the value to pass from my dictionary
    primarykey
    data
    text
    <pre><code> Dictionary&lt;string, double&gt; state = new Dictionary&lt;string, double&gt;(50); state.Add("Alabama", 0.0570); state.Add("Alaska", 0.1167); state.Add("Arizona", 0.0592); state.Add("Arkansas", 0.0835); state.Add("California", 0.0739); state.Add("Colorado", 0.0272); state.Add("Connecticut", 0.06540); state.Add("Delaware", 0.0825); state.Add("Florida", 0.0503); state.Add("Georgia", 0.0562); state.Add("Hawaii", 0.0985); state.Add("Idaho", 0.0736); state.Add("Illinois", 0.0562); state.Add("Indiana", 0.0648); state.Add("Iowa", 0.0591); state.Add("Kansas", 0.0654); state.Add("Kentucky", 0.0734); state.Add("Louisiana", 0.0685); state.Add("Maine", 0.0770); state.Add("Maryland", 0.0559); state.Add("Massachusetts", 0.0630); state.Add("Michigan", 0.0672); state.Add("Minnesota", 0.0802); state.Add("Mississippi", 0.0740); state.Add("Missouri", 0.0517); state.Add("Montana", 0.0708); state.Add("Nebraska", 0.0610); state.Add("Nevada", 0.0612); state.Add("New Hampshire", 0.0387); state.Add("New Jersey", 0.0661); state.Add("New Mexico", 0.0826); state.Add("New York", 0.0676); state.Add("North Carolina", 0.0726); state.Add("North Dakota", 0.0711); state.Add("Ohio", 0.0609); state.Add("Oklahoma", 0.0621); state.Add("Oregon", 0.0576); state.Add("Pennsylvania", 0.0617); state.Add("Rhode Island", 0.0640); state.Add("South Carolina", 0.0619); state.Add("South Dakota", 0.0423); state.Add("Tennessee", 0.0539); state.Add("Texas", 0.0438); state.Add("Utah", 0.0728); state.Add("Vermont", 0.1060); state.Add("Virginia", 0.0563); state.Add("Washington", 0.0648); state.Add("West Virginia", 0.0834); state.Add("Wisconsin", 0.0693); state.Add("Wyoming", 0.0778); string stateKey = textBox1.Text.Trim().ToUpper(); if (state.ContainsKey(stateKey)) { StateTax = state[stateKey]; } else { string messageBoxText = "Missing rate for state " + stateKey; MessageBox.Show(messageBoxText); return; } </code></pre> <p>So this is what i have so far, i cant get StateTax To take the value of one of my dictionary Values.This usually doesn't take me that long but my brain is just freezing lately on thinking. Whats the best way to write this?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload