Click here to Skip to main content
15,891,943 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Dear Friends,

i am using dictionary to store files with number(ie.,key).how to retrieve items based on its key?please refer the below code.

dicfile.Add iPageNo, sReflowXMLPath & "\" & sFullPageName & ".pdf"

VB
For Each colFile In dicfile
        qp.AddToFileList "listcol", dicfile(colFile)
       Next


instead of For Each using dictionary key i need to get values
Posted

1 solution

Here is a collection of Dictionary methods[^]. What about TryGetValue[^]?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900