VB programming for help, emergency !!

Updated on technology 2024-04-19
3 answers
  1. Anonymous users2024-02-08

    private sub timer1_timer()= "Current Time:" + cstr(time)if = cstr(time) thenmsgbox "The countdown ends"

    falseend if

    end sub

    private sub form_load()= false

    Start the timer"Calculate the difference"

    Count the number of occurrences"

    date 'For the convenience of testing, an initial value is set.

    2009-5-30" 'For the convenience of testing, an initial value is set.

    end sub

    private sub command1_click()= true

    end sub

    private sub command2_click()dim dt as date

    dt = cdate( -cdate(

    cstr(cint(dt))

    end sub

    private sub command3_click()dim a, b, c, len_str as integerdim str as string

    a = 0b = 0

    c = 0str =

    len_str = len(str)

    for i = 1 to len_str

    select case left(str, 1)case "a"

    a = a + 1

    case "b"

    b = b + 1

    case "c"

    c = c + 1

    end select

    str = right(str, len_str - i)next i

    print "a co-occurrence" & cstr(a) &"times"

    print "b co-occurrence" & cstr(b) &"times"

    print "c co-occurrence" & cstr(c) &"times"

    end is counted with arrays. I don't quite understand what you mean. Didn't happen.

    Several of the programs have initial values, mainly for the convenience of testing. You can use it or not.

    Probably tested it without any problems, you can take a look again!

  2. Anonymous users2024-02-07

    private sub timer1_timer()dim timenow as date

    timenow = #4:00:00 pm# - timeprint "It's still 4 p.m. away" & hour(timenow) &"times" &

    minute(timenow) &"points" &second(timenow) &"seconds"

    if time = #4:00:00 pm# thenmsgbox "It's time"

    end if

    end sub

  3. Anonymous users2024-02-06

    private sub timer1_timer()if then

    msgbox "The countdown ends"

    end sub

    private sub form_load()"Start the timer"

    end sub

    private sub command1_click()if "Start the timer" then

    Stop the timer"Start the timer"

    end if

    end sub

    private sub command1_click()text3=datadiff("d",cdata(text1),cdata(text2))

    end sub

    private sub command1_click()static a,b,c as integera=0:b=0:c=0

    for i=1 to len(text1)select case mid(text1,i,1)case "a"

    a=a+1case "b"

    b=b+1case "c"

    c=c+1end select

    print "a co-occurrence" & str(a) &"times"

    print "b co-occurrence" & str(b) &"times"

    print "c co-occurrence" & str(c) &"times"

Related questions
12 answers2024-04-19

Not sure what it does?

What are the specific requirements. >>>More

22 answers2024-04-19

It's a work-related injury! Your wife's unit is evading responsibility. The employer may be required to bear the liability for work-related injury compensation through labor arbitration on the grounds of work-related injury. If the arbitration result is not satisfactory, you can also file a lawsuit in court. There is a lot of hope for winning. >>>More

11 answers2024-04-19

It's going to be hard and uncomfortable for your dog to fight a deadly disease right now, and there's nothing you can do but spend more time with it and let your dog rest more. I can only believe in the doctor, continue to insist on giving it **, maybe the dog has a big life, it will survive this hurdle, I wish your puppy a speedy **, healthy growth.

10 answers2024-04-19

Set the focus. For example, if you make the text box text1 focus in the program, you can enter the text directly in the text box without clicking the text box with the mouse to make it focus before entering the content. >>>More

5 answers2024-04-19

You take a bit of time to do this, you can't get it done in a short time, and I'm looking forward to a free master. If you write in C, it shouldn't take much time.