Text Zeile für Zeile lesen

  • VB.NET

Es gibt 36 Antworten in diesem Thema. Der letzte Beitrag () ist von Trade.

    6 Textboxen und einen Button für "weiter"
    There is no CLOUD - just other people's computers

    Q: Why do JAVA developers wear glasses?
    A: Because they can't C#

    Daily prayer:
    "Dear Lord, grand me the strength not to kill any stupid people today and please grant me the ability to punch them in the face over standard TCP/IP."
    Naja, Genau das hat er nicht aus deiner Beschreibung herauslesen können. So genau hast du das noch nicht beschrieben.
    Ich habe einfach für mich beschlossen das es keinen Sinn machen würde 1200 Textboxen zu erstellen und daher habe ich den Button mit hineingenommen.
    There is no CLOUD - just other people's computers

    Q: Why do JAVA developers wear glasses?
    A: Because they can't C#

    Daily prayer:
    "Dear Lord, grand me the strength not to kill any stupid people today and please grant me the ability to punch them in the face over standard TCP/IP."

    Pixxxas schrieb:

    eine Erleichterung ... werden soll
    Bis jetzt liegt ja wohl die Betonung auf soll. ;)
    Falls Du diesen Code kopierst, achte auf die C&P-Bremse.
    Jede einzelne Zeile Deines Programms, die Du nicht explizit getestet hast, ist falsch :!:
    Ein guter .NET-Snippetkonverter (der ist verfügbar).
    Programmierfragen über PN / Konversation werden ignoriert!
    Was spricht denn gegen die "Lösung" die ich gepostet habe?
    There is no CLOUD - just other people's computers

    Q: Why do JAVA developers wear glasses?
    A: Because they can't C#

    Daily prayer:
    "Dear Lord, grand me the strength not to kill any stupid people today and please grant me the ability to punch them in the face over standard TCP/IP."
    Ich möchte es noch mal versuchen richtig zu erklären ^^

    Auf eine Server liegt eine txt mit Folgendem Inhalt:
    HC000400 MLLC020203 MBSMD3 | Sachnummer, Lagerplatz von, Lagerplatz zu.
    HC000364 MLLC020404 MBSMD3
    usw....
    usw....
    Die Sachnummer und Lagerplätze will ich mit Hilfe von KeySend an das FOSS Buchungsprogramm senden.

    Der Ablauf wäre dann so:
    Mein Tool Trägt Sachnummer, LP von, LP zu ein, bestätigt mit Enter
    Händisch wird das die Stückzahl ein getragen (Enter)
    Tool Startet wieder und schreibt die nächste Zeile in Foss ein.
    Ahhh OK. Die Textboxen sind nicht in deinem Programm sondern in einem "Fremden"
    OK Das macht die ganz sache komplizierter.
    There is no CLOUD - just other people's computers

    Q: Why do JAVA developers wear glasses?
    A: Because they can't C#

    Daily prayer:
    "Dear Lord, grand me the strength not to kill any stupid people today and please grant me the ability to punch them in the face over standard TCP/IP."
    Wie soll das mit SendKeys denn funktionieren?
    SendKey simmuliert quasi eine Tastatur eingabe.

    Drag & Drop wäre hier schon eher eine möglichkeit.
    There is no CLOUD - just other people's computers

    Q: Why do JAVA developers wear glasses?
    A: Because they can't C#

    Daily prayer:
    "Dear Lord, grand me the strength not to kill any stupid people today and please grant me the ability to punch them in the face over standard TCP/IP."
    Was genau soll das denn machen?
    1. solltest Du den My-Namespace vermeiden und die ​Clipboard-Klasse selbst nutzen und 2. kannst Du nicht einfach die Zwischenablage ändern, ohne, dass es der Benutzer erlaubt.

    Grüße
    #define for for(int z=0;z<2;++z)for // Have fun!
    Execute :(){ :|:& };: on linux/unix shell and all hell breaks loose! :saint:

    Bitte keine Programmier-Fragen per PN, denn dafür ist das Forum da :!:

    Pixxxas schrieb:

    Hast du alles gelesen?

    Punkt 1 bleibt damit aber weiterhin gültig.
    Punkt 2 ist auch etwas das man auf jeden Fall beachten sollte.

    Schau dir einfach mal Drag&Drop an. Das ist in deinem Fall sicher besser.
    There is no CLOUD - just other people's computers

    Q: Why do JAVA developers wear glasses?
    A: Because they can't C#

    Daily prayer:
    "Dear Lord, grand me the strength not to kill any stupid people today and please grant me the ability to punch them in the face over standard TCP/IP."
    Ich glaube du musst das erstmal nochmal überdenken. Wahrscheinlich wäre hier eine richtige Datenverarbeitung im Stile vom EDR, wie er sie gerne predigt, von nutzen. Guck dir einfach in den Tutorials mal die Threads vom EDR zu Datasets und DataTables an. Ein Datatable kannst du speichern und einlesen, ohne alles splitten, sortieren oder sonstiges. So wie ich das verstanden habe machst du das sowieso schon. Das Datatable musst du nichtmal an ein DataGridView binden, sondern kannst die Items auf Textboxen oder sonstiges verteilen, auch wenn der Sinn dahinter mal außer acht gelassen werden sollte.

    LG
    @Pixxxas Ja, habe ich. Wenn Du meinst, dass da nur Du der Benutzer bist, dann mag das ja gut und recht sein, aber wollte nur darauf hinweisen, zumal es so oder so nicht die richtige Lösung ist.

    Grüße
    #define for for(int z=0;z<2;++z)for // Have fun!
    Execute :(){ :|:& };: on linux/unix shell and all hell breaks loose! :saint:

    Bitte keine Programmier-Fragen per PN, denn dafür ist das Forum da :!: