|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hello pros, i'm a newbie and this is my first post.
I'm programming in a vbscript in my company's application Here i found an example which use this unknown symbol in vb - ':' (colon). I havent thought anything about this symbol before, neither using it. From my experience, vbscript is similar to vb, but is there any symbol such as this one in vb instead? Below is my example: Code:
If edge(t) < mindelta Then mindelta = edge(t): indmin = t Please someone help me. ![]() |
|
#2
|
||||
|
||||
|
that is just a one line if statement, its the same as
Code:
If edge(t) < mindelta Then mindelta = edge(t) indmin = t end if its just a shorter syntax
__________________
Look! Its a ShemZilla ![]() ![]()
|
|
#3
|
|||
|
|||
|
thanks
thanks. But why didn't I notice it earlier?
I'm now a freelance VB programmer. I made a lot of VB projects at home and office. This is the first time I saw such a syntax. Where can I get the complete reference of any programming language code or symbols? P/S: hmm.. are you alone, mr. 'nofriends'? |
|
#4
|
||||
|
||||
|
yeah, not a lot of people use that syntax
![]() you can have a look at the msdn for microsoft products, w3schools is a good place to go to for ASP. Quote:
LOL nope![]() |
|
#5
|
||||
|
||||
|
honestly, I didn't see any tutorial teaching this yet.
it's one of the small things that you learn from others, or maybe when you take "real" VB course. the reason they have the ":" in VB is quite obvious: it function like the semi colon (";") in the C like languages i.e. it seperate commands and as NF told you, enables you to have more than one command in the same line. the most popular usage is to give value to variable when declaring them in vbscript: Code:
Dim MyVar : MyVar = "hello" |
|
#6
|
|||
|
|||
|
Quote:
The complete VBScript and VB reference (and lots more) is online at http://msdn.microsoft.com/library/ You'll find VBScript reference in the Web Development section, and the VB reference in the Development Tools section.
__________________
====== Doug G ====== I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain |
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > Symbol in vbscript |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|