Autor Beitrag
Christoph Englmann
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 276



BeitragVerfasst: Fr 29.07.05 12:01 
hallo,

ich glaub ich hab mich jetzt dumm programmiert...

sehe den fehler nicht!!

nachstehender quellcode erzeugt beim compilieren die fehlermeldung
"undeclared identifier self"

ausblenden volle Höhe Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
unit Dateien_auslesen;


interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, DB, DBTables, Mask, DBCtrls, ComCtrls, ComObj, Shellapi,
  Word2000, OleServer;



function VTB_Auslesen(VTB_Datei, Status :string): boolean;

implementation

uses
  VTDatamodule, UsrUtils, VTPasswd;

function VTB_Auslesen(VTB_Datei, Status :string): boolean;
type
  aSTr = array[1..50] of String;
  aInt = array[1..50] of Integer;


var
  Word :Variant;
  Text : string;
  Datei :OLEVariant;
  unit_, count_, extend_ :oleVariant;
  i, z  :integer;

  aBT_FKT_NR :aInt;
  aBT_FKT_Beschreibung :aStr;

  Wordapplication1 :TWordApplication;
  WordDocument1 : TWordDocument;

  Query :TQuery;


begin

  Datei := Amtlaufwerk+'\vtb\'+VTB_Datei;
  for i := 1 to 50 do
  begin
    aBT_FKT_NR[i] := 255;
    aBT_FKT_Beschreibung[i] := '';
  end;


  //shellexecute(Handle,'OPEN',PChar(VTB_DATEI),'',nil,sw_minimize);

  try
    wordapplication1 := TWordApplication.Create(self);



hilfe...danke
noidic
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 851

Win 2000 Win XP Vista
D7 Ent, SharpDevelop 2.2
BeitragVerfasst: Fr 29.07.05 12:03 
Zeile 55, Aufruf von Create mit Paramter self, obwohl du in garkeinem Objekt bist.

Gruß

noidic

_________________
Bravery calls my name in the sound of the wind in the night...
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Fr 29.07.05 12:10 
Nimm einfach nil, normalerweise geht das in so einem Fall.
Christoph Englmann Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 276



BeitragVerfasst: Mo 01.08.05 08:50 
cool... mit nil klappts einwandfrei...danke