Help me write a program! It s urgent!!

Updated on technology 2024-04-09
7 answers
  1. Anonymous users2024-02-07

    Place a button and 2 textboxes in the form, enter information in text1 during runtime, and see the output result in text2 after clicking the button.

    private sub command1_click()dim sfor i = 1 to len(text1)n = asc(mid(text1, i, 1))if n >= asc("a") and n <= asc("z") then s = s & chr(n - 32) else _

    if n >= asc("a") and n <= asc("z") then s = s & chr(n + 32) else s = s & "*"

    nexttext2 = s

    end sub

  2. Anonymous users2024-02-06

    Just add a textbox

    Then you can type it directly in it to see the effect.

    private sub text1_keypress(keyascii as integer)

    if keyascii >= 97 and keyascii <= 122 then

    keyascii = keyascii - 32elseif keyascii >= 65 and keyascii <= 90 then

    keyascii = keyascii + 32elsekeyascii = 42

    end if

    end if

    end sub

  3. Anonymous users2024-02-05

    Try mine! Add a text control to the form and write the following under its keypress event

    private sub text1_keypress(keyascii as integer)

    select case keyascii

    case 97 to 122: keyascii = keyascii - 32 'lowercase to capital

    case 65 to 90: keyascii = keyascii + 32 'capital to lowercase

    case else: keyascii = asc("*") 'else all out "*"

    end select

    end sub

  4. Anonymous users2024-02-04

    Add a text box.

    dim m, i, n as stringprivate sub text1_keypress(keyascii as integer)

    m = cstr(keyascii)

    if m >= 65 and m <= 90 thenm = m + 32

    n = chrw(m)

    print n;

    elseif m >= 97 and m <= 122 thenm = m - 32

    n = chrw(m)

    print n;

    elseprint "*";

    end if

    end if

    end sub

    If you don't understand, or can't come to me. )

  5. Anonymous users2024-02-03

    Help me write a program! It's urgent!!

    Bounty Points: 30 - 14 days and 23 hours until the end of the question.

    Write an automatic conversion program for uppercase and lowercase letters, which will automatically convert to uppercase letters when entering lowercase letters, automatically convert to lowercase letters when entering uppercase letters, and display "*" when entering other characters

  6. Anonymous users2024-02-02

    I'm still doing my homework so late.

  7. Anonymous users2024-02-01

    Solution: Let a be x, then b is 40 x.

    There are two schemes: 7x 3 (40 x) 226 and 4x 10 (40 x) 250

    From equation 1: x, that is, the wild mill sum is 26 whole pieces, and the tomato needs 224kg A and 244kg B;

    From Equation 2: x 25, A needs 226kg, B 250kg;

    That is, the solution of A26 pieces and B14 pieces is good, because the task is completed and the raw materials are saved, and the cost will be low.

    Know that the members of the expert group will answer for you! Raise your hand to express your gratitude and attention!

    I would like to express my heartfelt thanks!

    I wish you progress in your studies and all your dreams come true!

    Proudly produced by yanjunmin888.

Related questions
5 answers2024-04-09

The ** provided is mainly based on the following two errors: >>>More

7 answers2024-04-09

fun proc near

mov bl,10d >>>More

2 answers2024-04-09

Downlight: This product is suitable for different places such as hotels, homes, and cafes; Compact and with high luminous flux, it is combined with two types of reflectors, mirrored and frosted. A specular reflector that gives a sense of shimmer, and a frosted reflector that harmonizes the ceiling with a moderate amount of light. >>>More