Search Results - VBForums

Search:

Type: Posts; User: treddie

Page 1 of 11 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    20
    Views
    610

    Re: On Error Goto Fails

    That's in the vb help system, but it really doesn't say much more than suggest that On Error Goto 0 dumps the error number but leaves an enabled and functionless error handler in memory. If that...
  2. Replies
    20
    Views
    610

    Re: On Error Goto Fails

    When you say, "clear the error", what exactly does that mean. If I do:


    ErrHandler:
    Dim ErrNum as Byte
    Dim a as Byte

    a = Err.Number
    On Error Goto 0
    a = Err.Number
  3. Replies
    20
    Views
    610

    Re: On Error Goto Fails

    So there seem to be two things going on:
    1. An error handling (object?) is created with On Error Goto and On Error Resume, which is dealt with through an error handler.
    2. Once that error...
  4. Replies
    20
    Views
    610

    Re: On Error Goto Fails

    Had fun playing around with On Error Goto -1. Very useful for problems in the error handler itself. Which is kind of funny...An error in an error handler! Lol!

    And the combination of On Error...
  5. Replies
    20
    Views
    610

    Re: On Error Goto Fails

    GAWD I hate undocumented features! Knowing that little gem now is...well...a Gem!

    Thanks for all the great responses! I will report back after I have experimented with the suggestions.
  6. Replies
    20
    Views
    610

    Re: On Error Goto Fails

    Solved the problem, but not sure why it worked. I simply replaced both On Error Goto's with On Error Resume Next and the problem went away. Hmmmm.
  7. Replies
    20
    Views
    610

    Re: On Error Goto Fails

    OK, I THINK I get it...I have enabled an error handler that is not separated from the general code in the procedure, by an intervening Exit Sub line. So even though I have used an On Error Goto 0...
  8. Replies
    20
    Views
    610

    Re: On Error Goto Fails

    Thanks for your reply, DataMiser.



    The error gets raised and the program stops execution.

    Could it be due to having two On Error Goto's in the same procedure? The code shown in my OP, is...
  9. Replies
    20
    Views
    610

    On Error Goto Fails

    Hello.

    I am trying to figure out why something so simple is failing. The following code fails to jump to DimArray1 when a Subscript Out Of Range error is encountered. Not much of a jump, since...
  10. Replies
    9
    Views
    333

    Re: Open Statement's Port Keeps Closing

    Ahhh, OK. Got it. And makes perfect sense. I think that I never ran into those issues because I have always concantinated variables with text, never with literal numbers.

    Thanks for the great...
  11. Replies
    9
    Views
    333

    Re: Open Statement's Port Keeps Closing

    Hehe...I spoke to soon...I left out the "#" before the NewFileNum variable. It works perfectly now, using Append Mode. Thanks for the tips everyone!



    Yes, that's how I eventually did it.
    ...
  12. Replies
    9
    Views
    333

    Re: Open Statement's Port Keeps Closing

    Sorry for the long delay. Been very busy.

    Excellent advice by everyone. Unfortunately, nothing worked. So although your advice is excellent, I believe the problem lies elsewhere. I think I...
  13. Replies
    9
    Views
    333

    Open Statement's Port Keeps Closing

    Hi all.

    I have run into an odd problem I have not seen before. I have the following code in my form_load procedure:

    Open App.Path + "\" + "DebugFile.txt" For Output As #5

    'Write...
  14. Re: Split Function Gives Weird Results Sometimes

    Hold off...Sorry to bother you. The returned value 30777 IS correct. It's been a while since I worked on this program, but the short 199 lines of text is what came back when I printed out the...
  15. Re: Split Function Gives Weird Results Sometimes

    I have tried that but get the same result..."30777".

    Here is the text file:
  16. Split Function Gives Weird Results Sometimes

    Hi.

    I have a section of code that is intended to split a text file's contents into separate lines that go into an array. Each line should then be easily read from the array:


    ProjectText_str...
  17. Replies
    7
    Views
    358

    Re: Inconsistent? Runtime Error 5

    The REAL problem is that I need a function to do roots of complex numbers. I can't find one online, so I'll just write my own based on the rules of exponentiation.
  18. Replies
    7
    Views
    358

    Re: Inconsistent? Runtime Error 5

    OK, I found it. My order of operations was not taken into account. Negation occurs AFTER exponentiation. If (x) is (-), then x^(1/3) will fail. However, doing, say, -.5^(1/3) succeeds because the...
  19. Replies
    7
    Views
    358

    Re: Inconsistent? Runtime Error 5

    a = .45
    b = 4.65
    c = 4.35
    d = -3.45
  20. Replies
    7
    Views
    358

    Re: Inconsistent? Runtime Error 5

    Hi doctrin13th. Thanks for replying.



    The following line fails outright:

    i_LeftBot = (Sqr((C ^ 3 / (27 * A ^ 3)) + (D ^ 2 / (4 * A ^ 2)) - (B ^ 2 * C ^ 2 / (108 * A ^ 4)) + (B ^ 3 * D /...
  21. Replies
    7
    Views
    358

    Inconsistent? Runtime Error 5

    Hi,

    I have a strange problem.

    As an example, (x) = the results of a long equation and ends up = -5.22150298374801

    In a given situation (but not always), if I try to calculate x ^ (1/3), I...
  22. Replies
    27
    Views
    36,118

    Re: Accessing Controls from Worker Threads

    This is the best and simplest explanation I have seen for threading. There were a couple of close "thirds" out there..Not quite "Seconds".
    Thanks jmc!
  23. Replies
    6
    Views
    987

    Re: FindFirstFileEx and Unicode

    OK, I figured out the problems in my code. I will post the resultant demo program when I get some test code copied over and running. The problems were mostly major data-typing problems.
  24. Replies
    6
    Views
    987

    Re: FindFirstFileEx and Unicode

    It just dawned on me how to sort out part of the typing confusion. Win32.api is just that...A 32bit set of libraries. Even when run on a 64bit system, it's still win32. Therefore, no parameter can...
  25. Replies
    6
    Views
    987

    Re: FindFirstFileEx and Unicode

    and


    Exactly. In fact, according to one source, and when using the Unicode "W" version of the function, the string and WFD parameters need to be pointed to. Also, due to the differences between...
  26. Replies
    6
    Views
    987

    FindFirstFileEx and Unicode

    Howdie.

    I am researching how to use the Unicode version of FindFirstFileEx() in vb.Net and am having a heck of a time getting this to work. I had downloaded an example and it used the standard...
  27. Re: How to Unlock a Folder Locked by Another App

    These might be a good start:
    http://www.codeproject.com/Articles/10042/The-Windows-Access-Control-Model-Part-1
    http://www.installsetupconfig.com/win32programming/windowsfileapis4_12.html
  28. Re: How to Unlock a Folder Locked by Another App

    Found and tried this as well, but no go:


    Both of the approaches in my posts execute without errors, but do not do anything noticeable. Which is interesting in that I would think the operations...
  29. How to Unlock a Folder Locked by Another App

    Hey all.

    I have been researching this problem and am basically coming up empty. I need to do in code what Unlocker essentially does as an app...That is, remove a lock on a folder that has been...
  30. Re: Visual Studio cannot start debugging because the debug target is missing

    Hey jmcilhinney, thanks for coming back.



    I used them and loved 'em when they were applicable. In fact, this last port-over I did had them. They were simple and quick, just like vb6 could do...
  31. Re: Visual Studio cannot start debugging because the debug target is missing

    That's true, but only in a limited sense. You cannot group together different TYPES of controls in the same control array. At any rate, it still shouldn't matter. vb.Net still could have had...
  32. Re: Visual Studio cannot start debugging because the debug target is missing

    Well then, I can only chock that one up to inexperience. That IS a great feature.



    I think I might remember that article. If we are talking about the same thing, it was from maybe 10 years...
  33. Re: Visual Studio cannot start debugging because the debug target is missing

    Sorry for the delay in getting back. I'm totally slammed and will respond shortly.
  34. Re: Visual Studio cannot start debugging because the debug target is missing

    Hey, formlesstree4,

    Thanks for your response.

    I respect your opinions, and here is my take on your thoughts.



    Response1:
    I somewhat agree with you in that statement. I have never...
  35. Re: Visual Studio cannot start debugging because the debug target is missing

    Well, first off. Sorry for the rant. It was late, I was tired, and not in the mood to not be able to finish up a last bit of code before going to bed.

    With that said, I still see things a...
  36. Visual Studio cannot start debugging because the debug target is missing

    This is why I so GD hate .Net.

    Everything was working fine as I was working some code and then I get two types of error messages that are so Fing verbose they tell me nothing but that whoever...
  37. Replies
    9
    Views
    479

    Re: StreamWriter not "bidirectional"?

    Got it. Makes sense. Funny how this all came about. Asking about a capability based on an incorrect assumption about something I already knew about but forgot and ended up learning something new...
  38. Replies
    9
    Views
    479

    Re: StreamWriter not "bidirectional"?

    Then it sounds like a FileStream can be either in control of or subordinate to a writer and reader. A Writer or Reader assigns a FileStream, but a FileStream can assign StreamWriter/StreamReader...
  39. Replies
    9
    Views
    479

    Re: StreamWriter not "bidirectional"?

    Heheh. Age makes it worse. :)

    Ok then, I understand. I wasn't aware of FileStream yet, just StreamWriter and StreamReader as separate entities.
    Thanks everybody.

    p.s. I must confess I was...
  40. Replies
    9
    Views
    479

    StreamWriter not "bidirectional"?

    From what I have been experimenting with, it seems that StreamWriter is not "bidirectional" in that you cannot write to and read from a file using the same port. It seems that in order to read from...
Results 1 to 40 of 432
Page 1 of 11 1 2 3 4



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.