vb@rchiv
VB Classic
VB.NET
ADO.NET
VBA
C#
Schützen Sie Ihre Software vor Software-Piraterie - mit sevLock 1.0 DLL!  
 vb@rchiv Quick-Search: Suche startenErweiterte Suche starten   Impressum  | Datenschutz  | vb@rchiv CD Vol.6  | Shop Copyright ©2000-2024
 
zurück

 Sie sind aktuell nicht angemeldet.Funktionen: Einloggen  |  Neu registrieren  |  Suchen

VB.NET - Ein- und Umsteiger
Re: Private Variable in Form1 löscht eine private Variable in einer anderen Klasse 
Autor: Superpeppi
Datum: 10.11.10 15:13

Mit Dim mPlanpunkte, mPlanpunkt2 As New List(Of Point)
erstellst du zwei unabhängige Objekte vom Typ List.

mPlanpunkte zeigt auf Objekt1
mPlanpunkt2 zeigt auf Objekt2

Wenn allerdings
mPlanpunkte=mPlanpunkt2

mPlanpunkte zeigt auf Objekt2
mPlanpunkt2 zeigt auf Objekt2

mPlanpunkte.clear hat dann auch auf mPlanpunkt2 Auswirkung.
Ist ja das selbe!


Immer wenn du "New" verwendest wird ein neues Objekt erstellt

mPlanpunkte=mPlanpunkt2 erstellt keine Kopie!
Es wird nur der Zeiger auf ein vorhandenes Objekt weitergegeben!
alle Nachrichten anzeigenGesamtübersicht  |  Zum Thema  |  Suchen

 ThemaViews  AutorDatum
Private Variable in Form1 löscht eine private Variable in ei...1.510Ortech10.11.10 09:14
Re: Private Variable in Form1 löscht eine private Variable i...1.012ModeratorFZelle10.11.10 10:32
Re: Private Variable in Form1 löscht eine private Variable i...1.016Ortech10.11.10 11:59
Re: Private Variable in Form1 löscht eine private Variable i...1.006Superpeppi10.11.10 12:18
Re: Private Variable in Form1 löscht eine private Variable i...956Ortech10.11.10 12:40
Re: Private Variable in Form1 löscht eine private Variable i...1.042Ortech10.11.10 12:45
Re: Private Variable in Form1 löscht eine private Variable i...1.003Manfred X10.11.10 14:38
Re: Private Variable in Form1 löscht eine private Variable i...1.156Superpeppi10.11.10 15:13
Re: Private Variable in Form1 löscht eine private Variable i...956Maas10.11.10 15:20
Re: Private Variable in Form1 löscht eine private Variable i...1.147Superpeppi10.11.10 15:32
Re: Private Variable in Form1 löscht eine private Variable i...1.114Maas10.11.10 15:37
Re: Private Variable in Form1 löscht eine private Variable i...1.070Superpeppi10.11.10 15:42
Re: Private Variable in Form1 löscht eine private Variable i...1.018Ortech10.11.10 15:17
Re: Private Variable in Form1 löscht eine private Variable i...930Superpeppi10.11.10 15:30
Re: Private Variable in Form1 löscht eine private Variable i...936Ortech10.11.10 15:23
Re: Private Variable in Form1 löscht eine private Variable i...1.012Manfred X10.11.10 15:25
Re: Private Variable in Form1 löscht eine private Variable i...971Ortech10.11.10 15:44
Re: Private Variable in Form1 löscht eine private Variable i...933Ortech10.11.10 15:45
Re: Private Variable in Form1 löscht eine private Variable i...985Maas10.11.10 15:48
Re: Private Variable in Form1 löscht eine private Variable i...1.108Superpeppi10.11.10 15:55
Re: Private Variable in Form1 löscht eine private Variable i...981Maas10.11.10 15:58
Re: Private Variable in Form1 löscht eine private Variable i...1.080Superpeppi10.11.10 16:03
Re: Private Variable in Form1 löscht eine private Variable i...993Maas10.11.10 16:05
Re: Private Variable in Form1 löscht eine private Variable i...973Superpeppi10.11.10 16:07
Re: Private Variable in Form1 löscht eine private Variable i...919Ortech10.11.10 16:19
Re: Private Variable in Form1 löscht eine private Variable i...939Maas10.11.10 17:49

Sie sind nicht angemeldet!
Um auf diesen Beitrag zu antworten oder neue Beiträge schreiben zu können, müssen Sie sich zunächst anmelden.

Einloggen  |  Neu registrieren

Funktionen:  Zum Thema  |  GesamtübersichtSuchen 

nach obenzurück
 
   

Copyright ©2000-2024 vb@rchiv Dieter Otter
Alle Rechte vorbehalten.
Microsoft, Windows und Visual Basic sind entweder eingetragene Marken oder Marken der Microsoft Corporation in den USA und/oder anderen Ländern. Weitere auf dieser Homepage aufgeführten Produkt- und Firmennamen können geschützte Marken ihrer jeweiligen Inhaber sein.

Diese Seiten wurden optimiert für eine Bildschirmauflösung von mind. 1280x1024 Pixel