Solved

Dictionary Object Please Help.

Posted on 2000-03-22
1
132 Views
Last Modified: 2010-05-02
Hi everyone. I am trying to use Dictionary Object having a Tons of problems. I am trying to add strings to it. If string holds a value i save it, i aslo save it to it if strings is empty. THen i need to loop though these empty once and show them on screen. Someone knows how this can be done ? Please show me how. Thanks.
0
Comment
Question by:vbRetard
1 Comment
 
LVL 2

Accepted Solution

by:
corvanderlinden earned 30 total points
ID: 2648367
Dim x As Dictionary
Dim a
Dim i As Integer

Set x = New Dictionary

x.Add "0", ""
x.Add "1", ""

a = x.Keys

For i = 0 To x.Count - 1
  If x(a(i)) = "" Then Debug.Print "Empty"
Next
0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question