CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Mekinnik

Page 1 of 4 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    3
    Views
    3,176

    Re: Win32 API SendMessage not working properly

    I have never used UIAutomation. Can you give me some pointers or example of how to accomplish the task I posted?

    Thank you,

    mekinnik
  2. Replies
    3
    Views
    3,176

    Win32 API SendMessage not working properly

    I can not figure out why my send messages will only work when debugging. When I launch from the .exe file it appears that they are not firing. The code is just suppose to click a button on en...
  3. Replies
    2
    Views
    821

    Re: Basic beginner needs help

    I found the fix for my issue. I changed 'answer' from a var to a string. Here is the new code.



    string answer = null;
    do
    {
    Console.WriteLine("\nDo you need a new ID number (y = yes/n = no)?...
  4. Replies
    2
    Views
    821

    [RESOLVED] Basic beginner needs help

    I have created a simple console program promting the user to answer yes/no. I am trying to prevent the user from hitting the 'Enter key' to continue. I am sure this is a very simple fix, however...
  5. Replies
    2
    Views
    1,160

    [RESOLVED] Help with empty cell search

    I figured it out myself.
  6. Replies
    10
    Views
    8,007

    Re: Simple Randomize Question

    From what I can tell your code is missing some key information. This is how to generate a random number.


    Randomize
    variable = Int((upperbound - lowerbound + 1) * Rnd() + lowerbound)

    As far...
  7. Replies
    7
    Views
    910

    Re: Help needed with function

    DataMiser,
    Thanks for the suggestions, I will change the + to an &, good point. I did figure it out. Just four simple lines.


    If a = "" Then
    ElseIf x = a Then
    x = Mid$(rgch, Int(Rnd()...
  8. Replies
    7
    Views
    910

    Re: Help needed with function

    First off, let me start with dglienna's quote:

    dglienna,
    The rules are not faulty, just a bit extreme IMHO. But I did not create them, I only have to follow them. Also, I am noticing with a lot...
  9. Replies
    7
    Views
    910

    Help needed with function

    With this function I am attempting to accomplish three tasks, but keep having issues with it.

    1) I want to find within the string 'retval', any of the three letter words from the array...
  10. Replies
    10
    Views
    1,312

    Re: [RESOLVED] Help needed with InStr function

    I was to quick on marking this resolved. Another issue has come up. How can I make the InStr function not case sensitive. I am looking to search within 'retval' which is a random string for any form...
  11. Replies
    10
    Views
    1,312

    Re: Help needed with InStr function

    Thank you for your help. I solved it with the following code:


    Dim arrWords(1 To 1145)
    Dim i As Integer

    For i = 1 To 1145
    arrWords(i) = Sheets(2).Range("A" & i + 1).Value
    If InStr(1,...
  12. Replies
    10
    Views
    1,312

    Re: Help needed with InStr function

    That does not help, still get the same error. Here is an overview, I am trying to search within 'retval' for any of the values listed in column A rows 1 to 1145. If one is found, the function will...
  13. Replies
    10
    Views
    1,312

    Re: Help needed with InStr function

    Godd point on the Else statement, I did not think of that. The issue I am having is with the following line.


    WrkSht = Olist.Sheet(2).Range("A1:A1145")


    When I step through the code, it...
  14. Replies
    10
    Views
    1,312

    [RESOLVED] Help needed with InStr function

    I am trying to search within 'retval' for any of the values list in the column range A1:A1145. Can anyone help with this, I cannot put my finger on what it is I am doing wrong. Here is my function:
    ...
  15. Replies
    4
    Views
    791

    Re: Automating GetObject

    Thanks,
    I am trying right this code right now only I keep getting a ByRef error when it calls the Sub(LookForFiles). Any thoughts?



    Option Explicit
    Private Sub UserForm_Click()
    If...
  16. Replies
    4
    Views
    791

    [RESOLVED] Automating GetObject

    Is there any way to make the following GetObject line of code find the file. I am looking to have the code search the computer for the .xls file, then set it to wkbObj. Another thought is to create...
  17. Thread: Modify string

    by Mekinnik
    Replies
    11
    Views
    1,165

    Re: Modify string

    DataMiser,
    Never mind I figured it out myself.

    Thanks, anyway:thumb:



    Const test2 As String = "!#$*+,;:<=>?@^_|~"

    x = Mid$(test2, Int(Rnd() * Len(test2) + 1), 1)
  18. Thread: Modify string

    by Mekinnik
    Replies
    11
    Views
    1,165

    Re: Modify string

    Datamiser,
    Thank for your suggestion, it works great. In continuing with the modify string issue, the second function has to insert a special character. Here is my code for your review. Right now...
  19. Thread: Modify string

    by Mekinnik
    Replies
    11
    Views
    1,165

    Re: Modify string

    Another question within my modify string function. If 'a' creates the position within the string 'RetVal' to be modified, how can I test to see if the position 'a' already has a numeral? The...
  20. Thread: Modify string

    by Mekinnik
    Replies
    11
    Views
    1,165

    Re: Modify string

    DataMiser,
    Thank you for the help. It worked out perfectly. I was just missing the function returns like you suggested. Thanks a million.:thumb:
  21. Thread: Modify string

    by Mekinnik
    Replies
    11
    Views
    1,165

    Re: Modify string

    DataMiser,
    I tried what you suggested, but it is not returning the modified string. Any ideas as to what I am doing wrong? Here is what I have now, the sub, the calling function, and the called...
  22. Thread: Modify string

    by Mekinnik
    Replies
    11
    Views
    1,165

    Re: Modify string

    DataMiser,
    Thanks for the reply. The issue I have now is how to return the modified string back to the function that called it. Here is what I have currently, the function that calls, and the...
  23. Re: How do i want to create random number for dynamic array variables ?

    Like dglienna said:

    Your function has no idea what min and max represent, they have to equal a number. Another issue is in the following line:


    vitri = Int((Max * Rnd) + Min)


    To create a...
  24. Thread: Modify string

    by Mekinnik
    Replies
    11
    Views
    1,165

    Modify string

    How would I go about modifing a string with code? Lets say I have a string '12345' and I want to change the 3 to a six. How could I accomplish this task. I know how to grab the 3 itself and change it...
  25. Replies
    4
    Views
    728

    Re: [RESOLVED] Help with simple error

    Thanks for the help guys.
Results 1 to 25 of 79
Page 1 of 4 1 2 3 4





Click Here to Expand Forum to Full Width

Featured