Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
vbscript dim question
#1
Solved: 11 Years, 5 Months, 2 Weeks ago
Hello

Usually

We define variable in dim like

Code:
Dim variable name

For array
Dim arrayname()

for resize
redim arrayname()

now
Today i got something like this in framework.

Code:
Dim variablename : variablename = 0

Now i don't understand what it this ? anybody can help me ?
Reply
#2
Solved: 11 Years, 5 Months, 2 Weeks ago
This is nothing else but Declaration (before the : ) and Definition ( after the : ) of the variable written in the same line.
Reply
#3
Solved: 11 Years, 5 Months, 2 Weeks ago
You can use ":" to combine one or more executable statements. See one conditional statement to understand more

if a>b then msgbox a : msgbox b

You can apply this operator in lot of ways other than DIM
Reply
#4
Solved: 11 Years, 5 Months, 2 Weeks ago
Please ensure to include your code between [code] tags while asking or replying to questions. I have done this for you for this time.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  QTP and VBscript - noobie question gplayer 0 2,453 03-11-2011, 06:50 PM
Last Post: gplayer

Forum Jump:


Users browsing this thread: 1 Guest(s)