The lazy man's array:
// Although not a real array, it can be used as one.
// Returns an integer value stored at index iIndex
int GetLocalArrayInt(object oObject, string sVarName, int iIndex);
// Although not a real array, it can be used as one.
// Returns a string value stored at index iIndex
string GetLocalArrayString(object oObject, string sVarName, int iIndex);
// Although not a real array, it can be used as one.
// Returns an object value stored at index iIndex
object GetLocalArrayObject(object oObject, string sVarName, int iIndex);
// Sets an integer value at index iIndex for a variable named sVarName
void SetLocalArrayInt(object oObject, string sVarName, int iIndex, int iValue);
// Sets a string value at index iIndex for a variable named sVarName
void SetLocalArrayString(object oObject, string sVarName, int iIndex, string sValue);
// Sets an object value at index iIndex for a variable named sVarName
void SetLocalArrayObject(object oObject, string sVarName, int iIndex, object oData);
// Deletes an integer value at index iIndex for a variable named sVarName
void DeleteLocalArrayInt(object oObject, string sVarName, int iIndex);
// Deletes a string value at index iIndex for a variable named sVarName
void DeleteLocalArrayString(object oObject, string sVarName, int iIndex);
// Deletes an object value at index iIndex for a variable named sVarName
void DeleteLocalArrayObject(object oObject, string sVarName, int iIndex);
int GetLocalArrayInt(object oObject, string sVarName, int iIndex)
{
return GetLocalInt(oObject, sVarName + IntToString(iIndex));
}
string GetLocalArrayString(object oObject, string sVarName, int iIndex)
{
return GetLocalString(oObject, sVarName + IntToString(iIndex));
}
object GetLocalArrayObject(object oObject, string sVarName, int iIndex)
{
return GetLocalObject(oObject, sVarName + IntToString(iIndex));
}
void SetLocalArrayInt(object oObject, string sVarName, int iIndex, int iValue)
{
SetLocalInt(oObject, sVarName + IntToString(iIndex), iValue);
}
void SetLocalArrayString(object oObject, string sVarName, int iIndex, string sValue)
{
SetLocalString(oObject, sVarName + IntToString(iIndex), sValue);
}
void SetLocalArrayObject(object oObject, string sVarName, int iIndex, object oData)
{
SetLocalObject(oObject, sVarName + IntToString(iIndex), oData);
}
void DeleteLocalArrayInt(object oObject, string sVarName, int iIndex)
{
DeleteLocalInt(oObject, sVarName + IntToString(iIndex));
}
void DeleteLocalArrayString(object oObject, string sVarName, int iIndex)
{
DeleteLocalString(oObject, sVarName + IntToString(iIndex));
}
void DeleteLocalArrayObject(object oObject, string sVarName, int iIndex)
{
DeleteLocalObject(oObject, sVarName + IntToString(iIndex));
}