Search:

Type: Posts; User: zhshqzyc

Page 1 of 12 1 2 3 4

Search: Search took 0.06 seconds.

  1. Replies
    3
    Views
    876

    Re: Is it a deep clone of array?

    Assume the criteria is always satisfied.

    If Abs(Val(Format$(Trim$(grdLoadList.Columns(0).CellValue(grdLoadList.AddItemBookmark(pp))), "fixed"))) = 1 Then
    So the code goes into the loop. Are the...
  2. Replies
    3
    Views
    876

    [RESOLVED] Is it a deep clone of array?

    I have a hard time to understand the following code.


    Erase gbl_rsbillarray
    Erase gbl_rslpudatedarray
    settempvar = 0
    For pp = 0 To grdLoadList.Rows - 1
    If...
  3. [RESOLVED] Translate the meaning of return true when exec a sp

    I have a stored procedure.


    If dataclsobj.Datacls_ExecSP("spSomething", tempsnap) = True Then
    Array(0, x2) = temparray(0, 0) 'location code--int
    Array(2, x2) =...
  4. Replies
    10
    Views
    3,547

    [RESOLVED] Color &HFFFF80

    I have a piece of code.

    grd.StyleSets("Notes").BackColor = &HFFFF80

    I don't know what is the color it is, can somebody upload an image?
  5. Replies
    3
    Views
    741

    Re: About array size

    I don't have it. And I also have the code

    bill(0,i) = temparray(0,i)
    It confused me. There is no running error.
  6. Replies
    3
    Views
    741

    [RESOLVED] About array size

    I have the array.


    ReDim bill(28, UBound(temparray,2))
    For i= 0 To UBound(temparray,2)
    bill(28,i) = temparray(8,i)


    Let's assume UBound(temparray,2) = 5
    My question is the array has...
  7. Replies
    12
    Views
    7,845

    Re: Find all column's header name

    Yes. It works, it displays all captions.

    But why in the running time the headers are different from the captions, as well as the columns order.
  8. Replies
    12
    Views
    7,845

    Re: Find all column's header name

    The pdf manual has 400 more pages. I lost the direction. I just need a quick answer.

    Actually I just run the application, there are 50 more columns. But in the designing mode, I can only see about...
  9. Replies
    12
    Views
    7,845

    Re: Find all column's header name

    SSOleDBGrid
  10. Replies
    12
    Views
    7,845

    Re: Find all column's header name

    It is not my code so I don't know what grid is. But I think the heades are not in the code. Because I can see some of those on the designning time.(Not in running time)
  11. Replies
    12
    Views
    7,845

    Re: Find all column's header name

    I can't insert the image not sure why. But the image is at https://www.flickr.com/photos/67801243@N06/29192168456/in/dateposted-public/.

    The last column's header is "Charge". But actually there...
  12. Replies
    12
    Views
    7,845

    [RESOLVED] Find all column's header name

    I have a grid on the form. There are many columns. I can only see some of the header names in the design view(by clicking view object of the frm). Others perhaps stack each other.

    How can I find...
  13. [RESOLVED] Check array element values in immediate window

    In the debugging, how can I check the elements value of an array in immediate window.

    Let's say I only have the array name.
  14. Replies
    3
    Views
    455

    [RESOLVED] Why the button is not showing

    I have two buttons on the form. They use the same name cmdBtn. One is cmdBtn(0), the other one is cmdBtn(1). The difference is the caption. They are in the the different location.

    In the code, I...
  15. [RESOLVED] To understand button click event.

    I have a button and only one. I saw the code.


    Private Sub cmdSomething_Click(Index As Integer)

    Select Case Index
    Case 0
    Label1(8).Visible = True
    Label1(7).Visible =...
  16. Replies
    1
    Views
    572

    [RESOLVED] What is the value of SelType

    I have an event to select a row.

    Private Sub grid_SelChange(ByVal SelType As Integer, Cancel As Integer, DispSelRowOverflow As Integer)

    I set a breakpoint there. I found each time the value of ...
  17. Replies
    1
    Views
    1,305

    What is SSOleDBGrid.col?

    I have a control grd1. I find


    grd1.col = 0

    To understand it, I typed


    ?TypeName(grd1)
    It shows
  18. Replies
    7
    Views
    1,102

    VS 2008 Re: [RESOLVED] Merge strings and remove overlap

    Thank you anyway.
  19. Replies
    7
    Views
    1,102

    VS 2008 Re: Merge strings and remove overlap

    It is possible. If two entries are identical, we can ignore one of them. Actually the data should be pre-processed, the same entires in raw data should be removed first.

    We can overwrite the data...
  20. Replies
    7
    Views
    1,102

    VS 2008 [RESOLVED] Merge strings and remove overlap

    Hi,
    I have many strings in a two column text file. The first column is the start position, the second one is the string.
    Ex:
    41800403...
  21. Replies
    7
    Views
    2,803

    VS 2008 Re: Regular expression underscore

    I used "^.+_.+.+"
    Not sure right or wrong?
  22. Replies
    7
    Views
    2,803

    VS 2008 Re: Regular expression underscore

    As long long there are two more "_", it doesn't matter other issues such as number or chars. Of course, they can't be right next to each other.
    And it can not be the start and the end of the word.
  23. Replies
    7
    Views
    2,803

    VS 2008 [RESOLVED] Regular expression underscore

    Hi, I have a string that likes
    1234_a34_b789
    There are at least two "_" in the string. It cann't be the first or last letter.
    What is the regular expression pattern?

    Thanks.
  24. Replies
    1
    Views
    454

    VS 2008 Re: Looking for Regular Expressions

    Maybe my rule is wrong, only group 5 is enough. The question is how to avoid "1" and "10" are in the same group? Because they all ahve a string "1".
  25. Replies
    1
    Views
    454

    VS 2008 Looking for Regular Expressions

    Hi, I have a string list which has hundrens of elements. Now I want to find a rule to distinguish them according to their similarity. There are these kinds of pattern.


    Group 1: "ABC 20", "ABC 20...
  26. Replies
    1
    Views
    393

    MsOf07 [RESOLVED] Press button but no response

    Thanks for help. Attached is a docm file. Some VBA code.
    I click ed the button but no response.
  27. MsOf07 [RESOLVED] Get filename string without extension

    In VBA, suppose

    Set Doc = Documents.Open(strDoc)
    if Doc = "test.doc" or "test.docx" or "test.docm".
    How can I get the substring "test"?

    Thanks
  28. Replies
    0
    Views
    393

    find the similarity and group elements

    Hi, I have strings like
    AMS
    Saliva 1_CK0124011-VBP_R001_C001
    Saliva 1_CK0124011-VBP_R001_C007
    Saliva 2_CK0124011-VBP_R002_C001
    AMS Dup
    Saliva 2_CK0124011-VBP_R002_C007

    There is no a fixed...
  29. Replies
    3
    Views
    618

    VS 2008 Re: [RESOLVED] array list

    No, I mean I have 23 List, I want to form them as an array.
  30. Replies
    3
    Views
    618

    VS 2008 [RESOLVED] array list

    What is wrong?

    List<int[]> list1 [] = new List<int[]>()[23];
    Thanks.
  31. Replies
    7
    Views
    668

    VS 2008 Re: Color the font

    So can I change the font size using stream?
  32. Replies
    7
    Views
    668

    VS 2008 Re: Color the font

    I did't read the color, just parse the text file such as StreamReader.Readline().
    It may be a default color? Not sure your question. Do you mean that the color cannot be read?
  33. Replies
    7
    Views
    668

    VS 2008 Re: Color the font

    It doesn't matter foreground or background. I just want to make it different from others. Is there a way?
  34. Replies
    7
    Views
    668

    VS 2008 [RESOLVED] Color the font

    Hi, suppose I read a text file and I want to make some changes and still save it as a text file.
    The change is to add color to some strings. How to do it?


    1 2 3
    3 4 5
    4 5 7
    Then

    1 2 3
  35. Replies
    9
    Views
    2,410

    VS 2008 Re: Merge two text files

    Yes. They have same lines. Using
    File.ReadAllLines(dataPath) is okay.
  36. Replies
    9
    Views
    2,410

    VS 2008 Re: Merge two text files

    The file's size is about around 100kb.
  37. Replies
    9
    Views
    2,410

    VS 2008 Re: Merge two text files

    It doesn't matter how many lines, in my real world example, there are 2000 more lines and totally two abnormalities. As for data or content, it is just an example in the thread. In my real world case...
  38. Replies
    9
    Views
    2,410

    VS 2008 [RESOLVED] Merge two text files

    Hi, I have two text files. The first text file has the format:


    ID h1 h2 h3
    a 1 5 7
    b 3 3 5
    c 0 4 8And the second file:


    ID h4 h5 h6
  39. Re: find the common parts of lists

    Yes. You are right. is a wrong statement. It is not a simple both join. It will always keep the all the elements. But no distinct in the set itself but distinct between the sets.
  40. [RESOLVED] find the common parts of lists

    Suppose I have two list
    list1: {1,2,3,5}
    list2: {1,2,2,3,3,4}

    I want to get the result
    list3: {1,2,2,3,3,4,5}

    Please notice the final result contains the common parts between two lists....
Results 1 to 40 of 470
Page 1 of 12 1 2 3 4



Click Here to Expand Forum to Full Width