FlexPro
HistoryBase
Engineering
Training
Downloads
FlexPro Support
Knowledge
Community
About us
References
Jobs
General Contact
List Of Retailers
FlexPro Support
EN
DE
FR
Placeholder
Products and Solutions
Support and Downloads
Company
Magazine
Contact Us
Language
MyWeisang

Account settings

Topic

Kommentare auslesen aller Datensätze im Ordner

Home page Community Automation and VBA Read comments from all data records in the folder

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #35238
    HannesundCrew
    Participant

    Hallo,

    ich habe in FlexPro eine .csv-Datei eingelesen, dadurch ist dann ein Ordner entstanden. In diesem Ordner sind jetzt rund 40 Datensätze( in der Objektliste zu sehen) enthalten mit unterschiedlichen Namen. Nun möchte ich von allen Dateien die Kommentare über VBA einlesen und diese dann in eine Liste in VBA ablegen.

    #35239
    Bernhard Kantz
    Participant

    Das folgende Code-Beispiel zeigt die Kommentare der im Ordner “Messung A” enthaltenen Datensätze an.

    Public Sub GetComments()
        Dim fld As Folder
        Set fld = ThisDatabase.RootFolder("Messung A", fpObjectTypeFolder)
        Dim obj As DataSet
        Dim res As String
        For Each obj In fld.Objects(fpObjectTypeDataSet)
            res = res & obj.CommentsY & vbCrLf
        Next
        MsgBox res
    End Sub
    

    Dies kann leicht auf Ihr Problem angepasst werden.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.