?
Solved

Member or Data not found

Posted on 2002-07-06
1
Medium Priority
?
143 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 3

Accepted Solution

by:
PNJ earned 200 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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…
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…
Suggested Courses
Course of the Month12 days, 3 hours left to enroll

752 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