FlexPro
HistoryBase
Ingénierie
Formation
Téléchargements
Assistance FlexPro
Connaissance
Communauté
À propos de nous
Références
Emplois
Contact général
Liste des revendeurs
Assistance FlexPro
FR
DE
EN
Porte-plaquette
Produits et solutions
Support et téléchargements
Entreprise
Magazine
Contact
Langue
MyWeisang

Paramètres du compte.

Topic

Import Text File content in an Array

Page d'accueil ' Communauté ' Automation et VBA ' Importer le contenu d'un fichier texte dans un tableau

Voir les messages de 3 - 1 à 3 (sur un total de 3)
  • Auteur
    Messages
  • #35162
    HerveM1234
    Participant

    Hi,

    Is there an easy way to import the content of a text file in an array variable.
    The text file contains strings separated by “CR”.

    Thanks

    RV

    #35164
    HerveM1234
    Participant

    Hi,

    Is there an easy way to import the content of a text file in an array variable.
    The text file contains strings separated by “CR”.

    Thanks

    RV

    #35163
    Bernhard Kantz
    Participant

    Reading text file via VBA is no FlexPro Automation specific topic. But you can read such a file using a FPScript formula like

    [code]ReadTextFile(“D:\tmp\example.txt”, 0n, 0n, 1n, 1n, FALSE, TYPE_STRING, TRUE, “n”, FALSE)
    [/code]

    This expression generates a dataset of strings, each entry representing a line in the text read.

Voir les messages de 3 - 1 à 3 (sur un total de 3)
  • Vous devez être connecté pour répondre à ce sujet.