New topic in Visual Basic to REALbasic Conversion: VB Input #1 astring,asingle to Realbasic (from text file)
jahenso - Wed Apr 16, 2008 4:05 pm <http://forums.realsoftware.com/viewtopic.php?t=21869> Input text file looks like: "HEADER","TITLE" "SOMETEXT",123.45 "MORETEXT",345.67 "NEXTHEAD","TITLE2" "TEXT",123.45 "TEXT",567.80 VB allowed a series of input statements like: Input #1 HEAD$, TITLE$ Input #1 LABL$,ANUM Input #1 LABL$,BNUM# In order to deal with the mix of strings and values (single and double) in the input stream. I'm left with parsing the input lines into fields, getting rid of quotation marks, then CDbl the values. I'd love to put together a method called INPUT1 that would take references to the inputs (pass HEAD$ and TITLE$, then pass LABL$ and ANUM) which would allow me to minimally change the existing VB code but I'm not clear on how I could manage that without building 3 distinct methods. Any help would be appreciated. Andy -- Over 900 classes with 18000 functions in one REALbasic plug-in. The Monkeybread Software Realbasic Plugin v8.1. <http://www.monkeybreadsoftware.de/realbasic/plugins.shtml> [email protected]
