Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Array as an environment variable.....
#6
Solved: 11 Years, 4 Months ago
I used something like this in one of my code and it worked for me.

Code:
Dim avlprglist(4)
var=GetAvailProgram(searchText,avlprglist)
var=SelectProgram(avlprglist)
FunctionGetAvailProgram(searchText,avlprglist)
  ....code....
  avlprglist=assign the array I created here
End Function

This can also be obtained as a return value for function as some one suggested above like:
Code:
var=yourFunction()
x=newFunction(var)
Function yourFunction()
  --code---
  yourFunction=assign the array
End Function

Another thing is we have to define an array with range definitely before using it.

Hope this helps
Reply


Messages In This Thread
RE: Array as an environment variable..... - by kirk6acosta - 04-07-2011, 03:08 PM
RE: Array as an environment variable..... - by anil2u - 11-01-2011, 03:10 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Not able to get the list of items in Delphi Combobox Environment Object Raj Aryan Singh 3 2,296 02-04-2020, 12:32 AM
Last Post: Raj Aryan Singh
  how to get relative path by using testdir environment variable Sathyaprasad 1 1,951 11-30-2017, 02:21 AM
Last Post: supputuri
  environment variable path for qc automation2012 0 2,873 01-18-2015, 08:18 AM
Last Post: automation2012
  Select does not work together with Environment.Value qtped 7 4,062 02-14-2014, 12:46 PM
Last Post: supputuri
  How to convert a single dimension array to two dimensional array venkatesh9032 3 5,541 02-10-2014, 03:07 PM
Last Post: pranikgarg

Forum Jump:


Users browsing this thread: 6 Guest(s)