|
-
Jan 29th, 2003, 09:20 AM
#1
Thread Starter
Hyperactive Member
VB.NET like c syntax?
Is it possible to do in VB.NET a statement like this C statement?
Code:
if ((x=MyFunction())==0)...
Learn, this is the Keyword...
-
Jan 29th, 2003, 05:55 PM
#2
Re: VB.NET like c syntax?
Originally posted by Xmas79
Is it possible to do in VB.NET a statement like this C statement?
Code:
if ((x=MyFunction())==0)...
not in one line. You could either do this:
If MyFunction() = 0 then...
or
x = MyFunction()
if x = 0 then
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
-
Jan 29th, 2003, 06:05 PM
#3
Thread Starter
Hyperactive Member
Yes, I supposed it... I was asking because I wanted to put it on loop like this:
VB Code:
While ((x=myfuct())<>0)
'code here
end while
I solved with:
VB Code:
do
x=myfunct()
'code here
loop while x<>0
Learn, this is the Keyword...
-
Jan 29th, 2003, 06:08 PM
#4
Stuck in the 80s
Originally posted by Xmas79
Yes, I supposed it... I was asking because I wanted to put it on loop like this:
VB Code:
While ((x=myfuct())<>0)
'code here
end while
I solved with:
VB Code:
do
x=myfunct()
'code here
loop while x<>0
Why not:
VB Code:
Do
'code here
Loop While MyFunct() <> 0
??
-
Jan 29th, 2003, 06:12 PM
#5
Originally posted by The Hobo
Why not:
VB Code:
Do
'code here
Loop While MyFunct() <> 0
??
because he probably wants to use x in the loop
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
-
Jan 29th, 2003, 06:37 PM
#6
Thread Starter
Hyperactive Member
Yes, I want to use x
Learn, this is the Keyword...
-
Jan 29th, 2003, 06:51 PM
#7
Stuck in the 80s
-
Jan 29th, 2003, 10:39 PM
#8
Originally posted by The Hobo
But why...?
but why are you wondering why
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|