Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
3 basic questions..please help
#6
Solved: 11 Years, 4 Months ago
2)Why I cannot use "Dim A as Integer"? I thought its just VB there

As others mentioned above VBScript supports only one data type called ‘Variant’. You just need to declare the variable without any data type, the value assigned to it determine its data type. Its usage determines its data type.
Ex:
Code:
Dim A, B
A = 23
msgbox A
A =  "as"
B = A
msgbox A
A =45

C= A
msgbox "B = "& B
msgbox "C="&Cstr(C)
Reply


Messages In This Thread
3 basic questions..please help - by Blizna - 01-24-2010, 12:21 PM
RE: 3 basic questions..please help - by Saket - 01-25-2010, 10:28 AM
RE: 3 basic questions..please help - by Gizmos - 01-25-2010, 12:04 PM
RE: 3 basic questions..please help - by sasmitakumari - 07-09-2010, 12:21 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  few questions?? ACCBAJPA 1 2,410 07-08-2014, 02:01 PM
Last Post: QTpier
  QTP supportabi​lity questions debby_huijin 1 2,230 05-19-2014, 06:32 AM
Last Post: debby_huijin
  Hello All -Nice forum to start learning QTP. Few questions QTP.learning 0 1,894 05-18-2014, 04:10 PM
Last Post: QTP.learning
  Estimate for preparing a basic test script QTPBeginner48 4 2,952 02-25-2014, 03:45 PM
Last Post: guin.anirban
  Basic error handling RandomGrin 3 4,007 10-12-2013, 07:50 PM
Last Post: basanth27

Forum Jump:


Users browsing this thread: 3 Guest(s)