If i build my list with:
shouldn't i be able to search that list with:
Where xxxx is a str of numbers that is equal to (GLookup.FieldAsString([teal]'GROUP_ID'[/teal]))??
I am picking xxxx from an identical list but on a different form. I've stopped the procedures right after xxxx is assigned and it has the correct assigned "string/number", so i know that xxxx is holding the correct value.
Any Help is appreciated...
Code:
[b]while[/b] [b]not[/b] GLookup.Eof [b]do[/b]
[b]begin[/b]
GroupLookup.Items.AddObject(GLookup.FieldAsString([teal]'GROUP_NAME'[/teal]), TObject(longInt(NewStr(GLookup.FieldAsString([teal]'GROUP_ID'[/teal])))));
GLookup.Skip([purple]1[/purple]);
[b]end[/b];
shouldn't i be able to search that list with:
Code:
GroupLookup.ItemIndex:=GroupLookup.Items.IndexOfObject(TObject(longInt(NewStr(xxxx))));
Where xxxx is a str of numbers that is equal to (GLookup.FieldAsString([teal]'GROUP_ID'[/teal]))??
I am picking xxxx from an identical list but on a different form. I've stopped the procedures right after xxxx is assigned and it has the correct assigned "string/number", so i know that xxxx is holding the correct value.
Any Help is appreciated...