|
-
Jan 27th, 2003, 07:39 PM
#1
Thread Starter
Sleep mode
assign value to two variable ?
Guys , is there any possible way to assign a value to two or more variable at the same time and line ?thanx
-
Jan 27th, 2003, 09:09 PM
#2
Re: assign value to two variable ?
Originally posted by pirate
Guys , is there any possible way to assign a value to two or more variable at the same time and line ?thanx
no, that's only for c++/c# 
you could say a=3: b=3 , that's the shortest thing you can do, heh
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 27th, 2003, 09:12 PM
#3
Thread Starter
Sleep mode
Re: Re: assign value to two variable ?
Originally posted by MrPolite
no, that's only for c++/c# 
you could say a=3: b=3 , that's the shortest thing you can do, heh
not really what I mean . anyways , here is what I am trying to do :
VB Code:
Dim dt As DateTime
Dim dtv1 As DateTime
Dim dtv2 As DateTime
(dtv1) & (dtv2) = dt.Now
but seems stupid
-
Jan 27th, 2003, 09:17 PM
#4
Thread Starter
Sleep mode
I've tried this but gives different date and time values .as if it's not assigned to the same variable . any idea ?
VB Code:
Dim dt As DateTime
Dim dtv1 As DateTime
Dim dtv2 As DateTime
dtv1: dtv2 = dt.Now
MsgBox(dtv1.ToString)
MsgBox(dtv2.ToString)
-
Jan 27th, 2003, 09:39 PM
#5
Originally posted by pirate
I've tried this but gives different date and time values .as if it's not assigned to the same variable . any idea ?
VB Code:
Dim dt As DateTime
Dim dtv1 As DateTime
Dim dtv2 As DateTime
dtv1: dtv2 = dt.Now
MsgBox(dtv1.ToString)
MsgBox(dtv2.ToString)
eeeh I told you, you cant do it in vb.net
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 27th, 2003, 09:40 PM
#6
Thread Starter
Sleep mode
-
Jan 27th, 2003, 09:43 PM
#7
dude, there ISNT a way to do it. And you cant INVENT a way to do it
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 27th, 2003, 10:11 PM
#8
Thread Starter
Sleep mode
Originally posted by MrPolite
dude, there ISNT a way to do it. And you cant INVENT a way to do it
I'm waiting for VS.NET 2003 , maybe it can help me ...
-
Jan 27th, 2003, 11:42 PM
#9
Lively Member
dude, you dont gotta be a dink about it!!
give the guy a break for at least trying
-
Jan 27th, 2003, 11:57 PM
#10
Thread Starter
Sleep mode
after lots of attemps , all are failed ....I can do it but in two lines .I need that in only one line if possible . forget it anyways,
-
Jan 28th, 2003, 12:43 AM
#11
if you are really desparate you can write a function that gets a ParamArray of integers (or longs or whatever)....
so someFunction(value, byref paramArray variables)
then you could do assign all the values in the function. One line
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 28th, 2003, 12:47 AM
#12
Thread Starter
Sleep mode
naah , Since I already started the switch (to C# ) I will forget it and do it in C#.VB is always t.. language.
-
Jan 28th, 2003, 01:01 AM
#13
Whats wrong with this?
VB Code:
Dim dtv1 As DateTime = DateTime.Now
Dim dtv2 As DateTime = DateTime.Now
MsgBox(String.Concat(dtv1.ToString, ControlChars.Tab, dtv2.ToString))
-
Jan 28th, 2003, 01:04 AM
#14
Originally posted by Edneeis
Whats wrong with this?
VB Code:
Dim dtv1 As DateTime = DateTime.Now
Dim dtv2 As DateTime = DateTime.Now
MsgBox(String.Concat(dtv1.ToString, ControlChars.Tab, dtv2.ToString))
well, he was looking for this
a=b=c=9;
not supported in vb
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 28th, 2003, 02:19 AM
#15
Whats the point of that? Sounds like pirate is trying to be difficult
-
Jan 28th, 2003, 08:13 AM
#16
Lively Member
:confused:
what's so special you have to do it in 1 line?
normally, no problem doing it in 2 ???
very handy: [vbcode][/vbcode]
VB.NET - VB6 - VBA - ASP - RPG(AS/400) - C++ - java - SQL
look in the help, many probs can be solved that way.
I know, i'm to lazy too.
PLEASE PUT RESOLVED IF RESOLVED!!
-
Jan 28th, 2003, 01:01 PM
#17
Thread Starter
Sleep mode
Originally posted by Edneeis
Whats wrong with this?
VB Code:
Dim dtv1 As DateTime = DateTime.Now
Dim dtv2 As DateTime = DateTime.Now
MsgBox(String.Concat(dtv1.ToString, ControlChars.Tab, dtv2.ToString))
This cool , but what if I have more than two vari .anyways , I'm not trying to be difficult Edneeis but I was wondering if I could do it in VB. . THANX
-
Jan 30th, 2003, 01:04 PM
#18
yay gay
anyways VS.NET 2003 is VISUAL STUDIO .NET 2003 not a new plataform...it will just bring the new framework(i think) which'll have some new functions..but not changes to the languages itselvs!
\m/  \m/
-
Jan 30th, 2003, 04:16 PM
#19
Originally posted by PT Exorcist
anyways VS.NET 2003 is VISUAL STUDIO .NET 2003 not a new plataform...it will just bring the new framework(i think) which'll have some new functions..but not changes to the languages itselvs!
when is it comming out?
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 30th, 2003, 09:11 PM
#20
Thread Starter
Sleep mode
-
Jan 30th, 2003, 10:04 PM
#21
PowerPoster
I got the beta from the msdn subscription a month ago. I think it won't be too long from now.
At least the upgrade will only cost $29 dollars.
http://msdn.microsoft.com/vstudio/ho...tt/default.asp
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
|