Forum Discussion
tidenz_92110
Nimbostratus
Jul 26, 2010Data Class to array
Hi Guys,
I am trying to reference a new external data class and read the contents into an array.
class URL_LIST
"/help" := "www.companya.com/help/get"
foreach...
Hi Tidenz,
Which version are you testing on? This example worked for me on 10.2:
log local0. "[class get my_strings_class]"
if {[array exists my_array]}{
array unset my_array
}
foreach line [class get my_strings_class] {
log local0. "Adding \$line to array: $line"
set my_array([lindex $line 0]) [lindex $line 1]
}
log local0. "\[array get my_array\]: [array get my_array]"
Aaron
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects