|
-
Nov 16th, 2000, 07:47 AM
#1
Thread Starter
New Member
explaination needed!
i had seen some of the functions have '$' mark before the parentheses and some don with the same functions such as chr$() or chr() and ucase$() or ucase().
izit the returned value will converted to string ?
went will we use either of it ?
thank !
-
Nov 16th, 2000, 07:52 AM
#2
Guru
They work the same. The one without the dollar sign is waaaaay cuter.
-
Nov 16th, 2000, 08:00 AM
#3
Frenzied Member
Someone here told it's a bit faster 'cause VB doesn't have to find out what type to pass, so if you pass the $ with it ($ means (As) String), VB knows it's a string and doesn't have to convert it.
Doing
Dim Str$
is the same as
Dim Str As String
% = integer
& = long
there are more but I keep forgetting these.
@ = currency?
# = single or double?
Kedaman knows them all.
Jop - validweb.nl
Alcohol doesn't solve any problems, but then again, neither does milk.
-
Nov 16th, 2000, 08:32 AM
#4
Fanatic Member
$: String
%: Integer
&: Long
!: Single
#: Double
@: Currency
Cheers,
Paul.
Not nearly so tired now...
Haven't been around much so be gentle...
-
Nov 16th, 2000, 08:38 AM
#5
Thread Starter
New Member
em ...
Jop, izint the chr() should convert from ascii code to character format . the chr$() is telling vb that ascii code is string , is that what u mean ?
-
Nov 16th, 2000, 08:38 AM
#6
Fanatic Member
These can be used creatively.
i.e.
...go to the pub. OK, I can't be & because i'm no longer ! and the wife keeps me on a very short $. If you are buying, mine's a #, I haven't got any @.
If anyone can fit % in, they are better than me
Cheers,
P.
Not nearly so tired now...
Haven't been around much so be gentle...
-
Nov 16th, 2000, 08:46 AM
#7
Hyperactive Member
Our local zoo has a tiger, affectionatley known as 'teger'.
I took my baby sister to the zoo to see it. While my back was turned, the tiger ate my sister! Everybody saw it but me. I shouted "Where's my sister?"
Everybody pointed and said...
"Over there, %"
(poor, i know;-)
td.
"One logical slip and an entire scientific edifice comes tumbling down." - Robert M. Pirsig
[email protected]
"but if Einstein is right and God is in the details, reality requires that we sometimes get religion." - Scott Meyers.
-
Nov 16th, 2000, 12:42 PM
#8
Guru
Originally posted by chan
em ...
Jop, izint the chr() should convert from ascii code to character format . the chr$() is telling vb that ascii code is string , is that what u mean ?
No: As I said, Chr() and Chr$() are exactly the same, except Chr() looks better when someone sees your code. 
("Ewwww, what's this ugly dollar sign doing here?")
-
Nov 16th, 2000, 02:18 PM
#9
transcendental analytic
how can you say that Yonayan! I love the dollar sign, well some ppl don't like money i know but well i'm not talking about that now, !#$@& looks much nicer than as **** or C**()
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
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
|