Topic
Objekte erzeugen
Home page › Community › Automation and VBA › Create objects
- This topic has 2 replies and 2 voices and was last updated 13 years, 9 months ago ago by Karim El Mazouar.
-
AuthorPosts
-
29.07.2011 at 14:54 #35109Karim El MazouarParticipant
Hallo zusammen,
wie kann ich eine [b]Collection[/b] von dirgam.2D Objekte erzeugen?
und wie kann ich vom [b]Visual Basic[/b] aus die Datensätze vom [b]Flexpro-Projektdatenbank[/b] ansprechen und auf ihre Inhalt zugreifen?
Ich möchte eine For-Schleife durchlaufenlassen, bei jedm Schritt soll ein 2D-Diagramm objekt erzeugt werden und zwei signale zugeordent werden. Die Signal liegen als Datensätze im Projektdatenbankvielen Dank im Voraus
Gruß K
29.07.2011 at 14:54 #35111Karim El MazouarParticipantHallo zusammen,
wie kann ich eine [b]Collection[/b] von dirgam.2D Objekte erzeugen?
und wie kann ich vom [b]Visual Basic[/b] aus die Datensätze vom [b]Flexpro-Projektdatenbank[/b] ansprechen und auf ihre Inhalt zugreifen?
Ich möchte eine For-Schleife durchlaufenlassen, bei jedm Schritt soll ein 2D-Diagramm objekt erzeugt werden und zwei signale zugeordent werden. Die Signal liegen als Datensätze im Projektdatenbankvielen Dank im Voraus
Gruß K
29.07.2011 at 15:52 #35110Bernhard KantzParticipantYou can access an object with the [b]object[/b]-method and create an object with the [b]add[/b]-method.
Example1:
[color=blue]
Dim oDataset As DataSet
Set oDataset = ThisDatabase.RootFolder.Object(“DataSet”, fpObjectTypeDataSet)[/color]Example2:
[color=blue]
Dim oDiag As Diagram2D
Set oDiag = ThisDatabase.RootFolder.Add(“2D”, fpObjectType2DDiagram)
With oDiag
.Curves.Add
.Curves(1).Data.DataSet = “DataSet”
End With
[/color]
support@weisang.com -
AuthorPosts
- You must be logged in to reply to this topic.