PDA

Click to See Complete Forum and Search --> : Easy Questions


Nitro
Jan 13th, 2000, 06:06 AM
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

MartinLiss
Jan 13th, 2000, 06:57 AM
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).]

Nitro
Jan 13th, 2000, 07:19 AM
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.

MartinLiss
Jan 13th, 2000, 08:41 AM
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
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

Nitro
Jan 13th, 2000, 08:46 AM
Thanks Marty!

Lyla
Jan 13th, 2000, 09:03 AM
Hi.
For:

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

Did you Check IIF() in your help file.

Good Luck

Lyla