Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Svanholm

    Use cdlOFNOverwritePrompt as condition?

    Hmmm? On my pc, they both take almost exactly 10 sec to calculate. What is being timed? counting to a billion or what?
  2. Svanholm

    Use cdlOFNOverwritePrompt as condition?

    Interesting debate. And the beginner here is only grasping the thin surface of it. Bit like discussing black holes with Stephen Hawking; your explanations sound solid and clever, but it takes me an hour or so to understand what and why. Anyway, if I got it right, the answer for strongm must be...
  3. Svanholm

    Use cdlOFNOverwritePrompt as condition?

    Interesting debate. And the beginner here is only grasping the thin surface of it. Bit like discussing black holes with Stephen Hawking; your explanations sound solid and clever, but it takes me an hour or so to understand what and why. Anyway, if I got it right, the answer for strongm must be...
  4. Svanholm

    Use cdlOFNOverwritePrompt as condition?

    Thx for clearing that out (it will certainly help me read other threads) and thx for making me feel young again :-)
  5. Svanholm

    Use cdlOFNOverwritePrompt as condition?

    thx Hughlerwill Got it. Why a$ in the variable and not just a?
  6. Svanholm

    Use cdlOFNOverwritePrompt as condition?

    Interesting Hughlerwill. Am gonna try it. Wonder: Would it take all files in a directory if I change code to: Dim Item As String Item = Dir$("C:\MyDir\*.*") List1.AddItem Item Cause I need that later in my coding.
  7. Svanholm

    Use cdlOFNOverwritePrompt as condition?

    You are right, strongm. There are plenty of methods. And I have found a way, probably somewhat unorthodox and with a very long coding. But that is the way it is with languages: When you are a beginner, you use many words to describe simple issues. Nevertheless, I thankfully bookmark every...
  8. Svanholm

    Use cdlOFNOverwritePrompt as condition?

    Just what I figured after an day of testing. I guess I just have to find another way of determining whether a filename already exists or not and make my program do one thing if it does and another if it does not. But thanks strongm for saving more of my breath on this dead end.
  9. Svanholm

    Use cdlOFNOverwritePrompt as condition?

    HughLerWill, thanks That's what I thought at first (seems logical), but it does not work. I get the MsgBox Prompt:=("OverwritePrompt Dialog Box appeared") every time. If takes the if-statement either way. I figured the logic is that the With statement actually says: CommonDialog1.Flags =...
  10. Svanholm

    Use cdlOFNOverwritePrompt as condition?

    Is it possible to use cdlOFNOverwritePrompt as condition? To be specific: I wish to let my program act in one way if cdlOFNOverwritePrompt dialog box appears during runtime and another way if it does not. A simple coding example: With CommonDialog1 .Flags = cdlOFNOverwritePrompt...
  11. Svanholm

    Delete last part of String

    Very Cool ChrisHirst Will check them out, and, hopefully, use them. thanks a bunch :-)
  12. Svanholm

    Delete last part of String

    Thanks strongm I am aware of that, yes. In the current situation, user is not allowed to decide the extension, it is automatically added in the coding. Unless of course, user inputs "Test.txt", but then the actuael filename would be: "Test.txt.txt". Quite rare, I think. I mean, when I save a...
  13. Svanholm

    Delete last part of String

    Noted, thanks. However, I specifically want the end of a word to be deleted. I do not care about the beginning, cause I do not know which word the user chooses, as wrote previously in this thread. To be absolutely concrete, I wish to remove file-extensions, e.g. "Test.txt", so I can use the...
  14. Svanholm

    Delete last part of String

    Wow! That was new to me. You are absolutely right, I wanted both variables to be strings. So I guess it should write: Dim Word As String, Result As String or maybe even: Dim Word As String Dim Result As String My program and code is probably too small to register any significant slow...
  15. Svanholm

    Delete last part of String

    Thx for your reply strongm I did, in fact, investigate the Len function, but in vain. However pondering deeper, after your post, I suddenly Heurekaed it: Dim Word, Result as String Word = Text1.Text Result= Len(Word) - 4 Text2.Text = Left(Word, Result) I love logic when it is logical :-)
  16. Svanholm

    Delete last part of String

    Been searching forums, in vain so far, for solution to this simple problem: I want to delete last part of a String e.g. the word "Delete" so it only prints "Del". However, since the String is a user input I do not know the lenght of it so I cannot use: Left(Str, Len). A simple coding would...
  17. Svanholm

    Creating "File already exists, overwrite?" with CommonDialog1

    Hi Error7 Thx a bunch. Am gonna try it out. Knew about the .ShowSave cause it is the same as .Action = 2 but I did not know about the .Flags. Seems like that is what i look for. About the CancelError property: This does not mean that .False controls the "Save Button", does it? Totally agree...
  18. Svanholm

    Creating "File already exists, overwrite?" with CommonDialog1

    Hi clever people I am a beginnner working in VB5, struggling with open, save, and save as procedures. I have progressed well. They seem to work as I wish, mostly. I use CommonDialog1 and it is nice but a few things puzzles me. First of all: I want my procedure to alert with MsgBox that user is...
  19. Svanholm

    text from one form to another

    BobRhodes, I think that is just the simple answer I am looking for. Thanks for levelling with a "simple-minded" newbie. Will test it shortly Thanks a bunch - also to you other guy's advice.
  20. Svanholm

    Date format but not current date HOW?

    Let me specify: I did not mean that the user necessarily had to be allowed to type in the date himself. It's enough if he can choose it. So I do not think the issues mentioned by SBerthold counts for me. I tested the DTPicker quite thoroughly today, and so far it seems to cover my needs to...

Part and Inventory Search

Back
Top