Solved

Member or Data not found

Posted on 2002-07-06
1
138 Views
Last Modified: 2010-05-02
When I create new archive for my program, after specifying the archive's name and location, an error of member or data not found appears and VB indicate the following line of code:

Item.SubItems(3) = rightjust(comp.Ratio((i)), "##0.00%")

Note the rightjust coding is as follows:

Function rightjust(var As Variant, just As Variant) As String
   
    Dim frmt As Integer
   
    frmt = Len(just)
    rightjust = right(Space(frmt) & Format(var, just), frmt)
End Function

Can this problem be avoided or solved because creating new archive does not have anything inside after I place a file to compress.

I hope to receive reply ASAP. Thanks

Viewer

P/S: here's related class module coding

Private Type LempFile
    Key As String           'Path\File.ext
    fname As String         'Filename including extension only
    Ext As String          
    Path As String          
    RelPath As String      
    compressed As Boolean  
    fsize As Long          
    CompSize As Long      
    Ratio As Single        
    changed As Date
    icokey As String
    Offset As Long          
    ChkSum As Byte          
    chksumcomp As Byte      
    choosen As Boolean
End Type
0
Comment
Question by:program_viewer
1 Comment
 
LVL 3

Accepted Solution

by:
PNJ earned 50 total points
ID: 7137463
I think it may be the "Item" variable. "Item" is a property of several VB entities. Try changing your declaration of "Item" to (say) "MyItem" and see how that goes.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

679 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