if i programatically add in the entries it works fine, but if a add a empty
string (to signify no entry selected for my app) and then select the empty
string entry while my app is running the same general exception message
mentioned above happens.
im running win98 se with 192mb ram and ie6
Raymond Kennington
cboFields.Items.Add('');
cboFields.Items.Add('ItemType');
cboFields.Items.Add('Make');
the error occurs when i select the empty string.
"Raymond Kennington" <raym...@chariot.net.au> wrote in message
news:3D853289...@chariot.net.au...
I know this is vague, but without all of the code we really can only guess
--
Lawrence "Zen" Thurman
http://www.powerofzen.com
"Martin" <mar...@surefire.com.au> wrote in message
news:3d856b3c$1...@newsgroups.borland.com...
procedure TForm1.FormCreate;
begin
cboFields.Items.Add('');
cboFields.Items.Add('ItemType');
cboFields.Items.Add('Make');
end;
then run the app and select the first entry in the list. this is the point
where i get the error.
but i am still puzzled about the other problem i have which is if i add
lines to the string list via the property editor and then save that delphi7
crashes with the same error message.
"Lawrence Thurman" <lthu...@columbus.rr.com> wrote in message
news:3d85fd39$1...@newsgroups.borland.com...
which reads:
Len := SendMessage(ComboBox.Handle, CB_GETLBTEXTLEN, Index, 0);
if Len <> CB_ERR then
.....
in order to solve i had to this
Len := SendMessage(ComboBox.Handle, CB_GETLBTEXTLEN, Index, 0);
if (Len <> CB_ERR) and (Len <> 0) then
..
Martin <mar...@surefire.com.au> wrote in message
news:3d86...@newsgroups.borland.com...
Martin <marty...@iprimus.com.au> wrote in message
"Martin" <mar...@surefire.com.au> wrote in message
news:3d85218f$1...@newsgroups.borland.com...