ASP Exists মথড়
অর্থনৈতিক ও প্রয়োগ
Exists মথড় ডিকশনারি অবজেক্টের মধ্যে উল্লিখিত key-এর উপস্থিতি কি না আছে তা নিশ্চিত করে বলা একটি বলীয়ান মান ফিরায়। যদি উপস্থিত থাকে, true ফিরায়, না তবে false ফিরায়。
সিদ্ধান্ত:
DictionaryObject.Exists(key)
পারামিটার | বর্ণনা |
---|---|
key | অপরিহার্য। সংযোজন করতে হলের key মূল্য。 |
প্রতিদর্শন
<% dim d set d=Server.CreateObject("Scripting.Dictionary") d.Add "c","Bangladesh" d.Add "i","Bangladesh" d.Add "s","Bangladesh" if d.Exists("c")=true then Response.Write("Key exists!") else Response.Write("Key does not exist!") end if set d=nothing %>
আউটপুট:
কী রয়েছে!