Returns one.... here's a paste of a part of the code so it could maybe give a clue...
Code:
#define SSIZE(n) sizeof(n)/sizeof(n[0])
int SortInt(int *Array)
{
int Temp;
int Length = SSIZE(Array);
ShowMessage(AnsiString(Length));
Gives always "1" now...
Any other idea???
BTW, this is how my int array is declared in another function :
Code:
int Array[] = {StringToInt(Edit1->Text.c_str()), StringToInt(Edit2->Text.c_str()),
StringToInt(Edit3->Text.c_str()), StringToInt(Edit4->Text.c_str()),
StringToInt(Edit5->Text.c_str()), StringToInt(Edit6->Text.c_str()),
StringToInt(Edit7->Text.c_str()), StringToInt(Edit8->Text.c_str())};
And as far as I know, it's okay, I tested it with some ShowMessage()'s