Search:

Type: Posts; User: DataMiser

Search: Search took 0.33 seconds.

  1. Re: ListView problem: no refreshing after item deletion

    In your previous post you said

    So if the error occurs the code stops on that line and then you can check the value of those variables. This could go a long way to helping find the problem.
  2. Re: ListView problem: no refreshing after item deletion

    I know the error occurs on that line and I know it is because the query returns no result. What I do not know is what the value of those variables are at the time the error occurs which is what I was...
  3. Re: ListView problem: no refreshing after item deletion

    So what was the results?
  4. Re: ListView problem: no refreshing after item deletion

    I just went back to have a look. The code is very hard to follow. It appears you are calling the click event from the mouse up event. You are also calling it from the double click event. I haven't...
  5. Re: ListView problem: no refreshing after item deletion

    It is not the same it is a different var it has to be set somewhere, so where is string2klik being set?
  6. Re: ListView problem: no refreshing after item deletion

    So where is that being set?
  7. Re: ListView problem: no refreshing after item deletion

    A query will not return something if there is nothing there to return. The question you need to ask yourself is why is it not returning anything.
  8. Re: ListView problem: no refreshing after item deletion

    Ok so the question is why are you calling it? The code above this call removes an item from the listview. At this point that item would be gone. I can not think of any reason you would need to reload...
  9. Re: ListView problem: no refreshing after item deletion

    What does this line do?

    Call frmDvaKlika.apdejtujGlavniLV
  10. Re: ListView problem: no refreshing after item deletion

    As for your other error it means that what you are searching for returned no results. You should always check and see if your query returned results before trying to read the fields of the query....
  11. Re: ListView problem: no refreshing after item deletion

    For indx = 1 To lvredova
    If indx > lvredova Then Exit For
    '
    If Trim(ListView1.ListItems(indx).SubItems(2)) =...
  12. Re: ListView problem: no refreshing after item deletion

    I saw it but that is not the issue I was addressing and not what I asked you to provide. I can not help if you ignore 1/2 of what I say.

    As for the EOF error this should never happen as you should...
  13. Re: ListView problem: no refreshing after item deletion

    In Posts 20, 22 amd 26. I have asked that you set a break point and see if the code executes a given line and if so check the value of your vars at that point then let us know what the result is. You...
  14. Re: ListView problem: no refreshing after item deletion

    So did you set the breakpoint like I said before? If so what happened? If not then you should do so and let us know the results.

    I am curious why in the code above in one case you are using CSTR()...
  15. Re: ListView problem: no refreshing after item deletion

    I'm not really interested in downloading the project from mediafire. Simply post the real code for the second portion that is included in your first post. i.e. The routine where the delete and remove...
  16. Re: ListView problem: no refreshing after item deletion

    In reference to the 1st issue. You need to post the actual code that you are using if you want us to see the problem. In the code you posted you are referencing 2 different things and that would be a...
  17. Re: ListView problem: no refreshing after item deletion

    As pointed out earlier one of your problems is here

    SQL7 = "SELECT * FROM base_rec WHERE lvp_name='" & CStr(lblSel.Caption) & "';"


    If...
Results 1 to 17 of 17



Click Here to Expand Forum to Full Width