Results 1 to 6 of 6

Thread: Easy Questions

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2000
    Location
    Nitro
    Posts
    633

    Post

    I have two questions the first one is:

    1. Is there a more simplify way to write the following?

    If strX = "A" or strX = "B" then


    2. The exe that one download from the internet, what language is that written in. Because those exe is has no other require files (such as dll).

    Thank You

  2. #2
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Post

    1) No
    2) I don't know what EXE you mean, but it doesn't matter. You can't tell what language an EXE was derived from because they all get compiled into machine code. One thing you can know is that it wasn't written in VB, since VB can not produce stand-alone EXEs.

    ------------------
    Marty

    [This message has been edited by MartinLiss (edited 01-13-2000).]

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2000
    Location
    Nitro
    Posts
    633

    Post

    Hey Martin!

    Thank You for replying.

    1. So you can't type in something like the following:

    if strX ="A" or "B" then

    2. The exe I am talking about are programs that you download from graphics sites. You double-click on the exe and an orange runs around on your desktop. Do you have any idea language they used? Too bad I can't attach the exe to this message.

  4. #4
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Post

    1) Unfortunately not. While that will compile, it won't give the result you expect. I don't know if you would consider this simpler, but you can also do this
    Code:
        Select Case strX
            Case "A", "B"
                MsgBox "It's A or B"
            Case "C"
                MsgBox "It's a C"
            Case Else
                MsgBox "It's something else"
        End Select
    2) Maybe C++, but as I said there's no way to tell.


    ------------------
    Marty

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2000
    Location
    Nitro
    Posts
    633

    Post

    Thanks Marty!

  6. #6
    Addicted Member
    Join Date
    Jul 1999
    Location
    Portland, OR.
    Posts
    226

    Post

    Hi.
    For:

    If strX = "A" or strX = "B" then

    Did you Check IIF() in your help file.

    Good Luck

    Lyla

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width