Em 31/7/2009 21:17, Andrew Brunner escreveu:
Hi All. I have a data type of TStringArray=Array of String...
Under debugger (GDB Linux) I can't access any of the elements.
Is there a compiler option to enable information during debugging and
or watching?
Presently, when Inspecting or Viewing I get an error "Cannot perform
pointer math on incomplete type TSTRINGARRAY..."
Any ideas?
I not saw errors with the implementation below:
-------
TStringArray = array of string;
implementation
{ TMainForm }
procedure TMainForm.TestButtonClick(Sender: TObject);
{$WRITEABLECONST ON}
const
CStringArrayLength: Integer = 20;
{$WRITEABLECONST OFF}
var
VStringArray: TStringArray;
begin
SetLength(VStringArray, CStringArrayLength);
VStringArray[0] := 'Test';
ShowMessage(VStringArray[0]); // Show Test
end;
-------
--
[]'s, Silvio Clécio
---
Linux User: #481900
Gmail, GTalk: [email protected]
E-mail, Y! Messenger: [email protected]
BlogSite: http://silvioprog.blogspot.com/
BlogSpot: http://silvioclecio.blogspot.com/
VirtualDriver: http://silvioprog.4shared.com/
°oO| Seja livre, use Linux! |Oo°
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus