Welcome to Emulationworld

Forum Index | FAQ | New User | Login | Search

Make a New PostPrevious ThreadView All ThreadsNext ThreadShow in Flat Mode*


SubjectRe: Visual Basic help, anyone ? Reply to this message
Posted byTi-BOne
Posted on07/12/06 01:33 PM



In VB,it works a little bit different

if i have this code :
--- if a= b then dothis ----
thatīs a line if

if i have this code :
---- if a = b then
msgbox "a equals b"
msgbox "that means a has the same value as b"
msgbox "simple math-fucker"
end if
-------------

thatīs a block if. thereīs no 'begin' and 'end' statements needed.

i have never encountered this problem before, i will do a more detailed debugging later.

But thanks anyway.


> I don't use VB but I would have though you need to put the code after your 'if
> xxxx=xxxx then' statement as a block. For instance in Delphi, which I guess is
> pretty similar to VB it would be :
> if whatever = whatever2 then
> do begin
> blahblahblah;
> blahblahblah;
> blahblahblah;
> blahblahblah;
> end else
> 'do fuck all'
>
> That way, all the code between begin and end will get executed in order. I don't
> know what the equivelant of begin and end are in VB, maybe that is the problem.
>
> Trust me, I'm a fucking Doctor.
>
> Arucard
>




-
Entire Thread
Subject  Posted byPosted On
*Visual Basic help, anyone ?  Ti-BOne07/12/06 11:10 AM
.*You defile my forum with Visual Basic!?  Snowball 207/12/06 09:11 PM
..*i was wondering how long it was gonna take.  Ti-BOne07/13/06 08:23 AM
...*I'm biased  Snowball 207/13/06 08:56 AM
....*Yar  Marv07/13/06 09:05 AM
..*There's also a "Goto" in there ;o) -nt-  Marv07/13/06 01:45 AM
.*Re: Visual Basic help, anyone ?  Marv07/12/06 06:12 PM
..*Re: Visual Basic help, anyone ?  Ti-BOne07/12/06 07:09 PM
...*Re: Visual Basic help, anyone ?  Marv07/13/06 04:57 AM
.*Re: Visual Basic help, anyone ?  arucard07/12/06 11:22 AM
...Re: Visual Basic help, anyone ?  Ti-BOne07/12/06 01:33 PM