I have a server routine that reads all values of the key-field of a hash-file into an array using the code as below:
(note that STAGING_FOLDER and ARRAY_ELEMENT are arguments passed to the routine)
Code: Select all
DIM SubFileRunListArray(300)
MAT SubFileRunListArray=0
Openpath STAGING_FOLDER:"/SubFileRun_Types_HF" To FileVar
Then SELECT FileVar to 1
ctrJobsToRun=0
Loop
READNEXT key From 1
Else Exit
ctrJobsToRun=ctrJobsToRun+1
SubFileRunListArray(ctrJobsToRun) = key
Repeat
Close FileVar
Ans=SubFileRunListArray(ARRAY_ELEMENT)
Also, the data in the array element is not in the same case as that in the hash-file e.g. the key value in the file is ITM_STATUS_unknown but when I display the array element, it is seen as ITM_STATUS_UNKNOWN, i.e. all in uppercase. Is there some way to prevent these two phenomena?
Thanks,
Kaus
[/code]