Jump to content

3 variable and textbox

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
4 replies to this topic

#1
bordino

bordino

    Newbie

  • Members
  • PipPip
  • 12 posts
I have 3 variable and textbox
Variables contain the 3 asci character each
Dim variable 1
Dim variable 2
Dim variable 3

variable 1

Chr 97
Chr 110
Chr 104

Variable2

Chr 66
Chr 112
Chr 180

Variable3

Chr 222
Chr 333
Chr 343

What I want to do is In my textbox asci 112 is there already so when a user types asci 104
on left said of asci 112 I want to chick right said see what asci is there and check the 3 variable
we have see if the asci 112 contain in those variable if yes I want to change the asci 104 to asci 222 which is in viable 3

#2
chili5

chili5

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 7,248 posts
huh? can you be more clear?

#3
bordino

bordino

    Newbie

  • Members
  • PipPip
  • 12 posts
Private Sub Text1_Change()
Dim intChars1 (3) As Integer
Dim intChars2 (3) As Integer
Dim intChars3 (3) As Integer
Dim x As Integer

intChars1 (0) = "97"
intChars1 (1) = "110"
intChars1 (2) = "104"

intChars2 (0) = "66"
intChars2 (1) = "112"
intChars2 (2) = "180"

intChars3 (0) = "222"
intChars3 (1) = "333"
intChars3 (2) = "343"


we have 3 vairable ok we have a textbox value is asci 112 so i want to type asci 104 on the left said of asci 112
ok

as soonest i pressed asci 104 i want to check see witch variable is asci 112 belong to we know its in intChars2 if asci 112 is true in intChars2 then i want to change asci 104 to asci 222 witch is in intChars3

all i want to do is check if asci 112 is in variable above if yes change asci 104 to 222

#4
chili5

chili5

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 7,248 posts
You don't get very much from going to every forum you come across and asking the exact same question. If you are going to ask a question ask it so it is easy to understand.

You need to learn something: no matter how good a programmer you turn out to be, you are going to be stepped over if you cannot communicate clearly. You really need to learn to spell correctly and to use proper grammar. This sets you aside from other programmers who may not be as good as you. If you can't spell variable then you really have problems.

Also use code tags in your post so we can read your code easier. You are populating an integer array with string values.

#5
bordino

bordino

    Newbie

  • Members
  • PipPip
  • 12 posts
I don’t speck good English you see but I solved my problem is that all you can do instead of helping what is the problem you go on just criticizing people man I think you don’t have the solution for what I’m asking in my first post if you keep doing this people run away from this forum