Na, dann machste genau das, was ich vorschlug, und zwar in beiden dimensions-loops. Also nicht den "temp" die ganze Zeit mit "+" zusammenbauen, sondern in ein array sammeln, das du dann mit Join zusammensetzt.
Thomas 2012/8/14 Klemens Klarhoelter <[email protected]> > Hallo Thomas, > > hier der Code Ausschnitt: > > last = UBound(database3IP) > lastx = UBound(database3IP,2) > out22 = "[database3IP]" +chr(13) //database3IP Tabelle > for i=0 to last > temp="" > for i1=0 to lastx > temp = temp + database3IP(i,i1)+"%" > next > out22 = out22 + temp+chr(13) > next > out22 = out22 +"[database3IP-end]" +chr(13) > > Klemens > > Am 14.08.2012 um 11:17 schrieb Thomas Tempelmann: > > > Es würde sicher helfen, wenn du den Code (ggf. in ein demo-prj umgebaut) > > uns zeigst, damit wir nicht im Dunkeln stochern und dir auf Verdacht > > erstmal alle möglichen Regeln des Programmierens aufzeigen müssen ;) > > > > 2012/8/14 Thomas Tempelmann <[email protected]> > > > >> Dann macht man das eben für jede Dimension. > >> > >> > >> 2012/8/14 Klemens Klarhoelter <[email protected]> > >> > >>> Hi Thomas, > >>> > >>> bei einem ein-dimensionalen Array sehe ich keine Probleme, > >>> aber wie soll das bei einem mehr-dimensonalen Array > >>> funktionieren? > >>> > >>> Klemens > >>> > >>> Am 13.08.2012 um 16:43 schrieb Thomas Tempelmann: > >>> > >>>> Wie baust du den String denn zusammen? Wenn du das in einem Loop > machst, > >>>> wird es sehr langsam, je mehr Elemente das Array hat. Man sollte die > >>>> Join-Funktion benutzen. > >>>> > >>>> Beispiel: > >>>> > >>>> Schlecht: > >>>> > >>>> dim out as String > >>>> for i as integer = 0 to ar.Ubound > >>>> out = out + ar(i).ToString + separator > >>>> next > >>>> > >>>> Besser: > >>>> > >>>> dim out_array as String > >>>> for i as integer = 0 to ar.Ubound > >>>> out_array.Append ar(i).ToString > >>>> next > >>>> dim out as String = Join (out_array, separator) > >>>> > >>>> -- > >>>> Thomas Tempelmann, http://www.tempel.org/ > >>>> Follow me on Twitter: http://twitter.com/#!/tempelorg > >>> > >>> Klemens Klarhoelter-Selbst > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >> > >> > >> -- > >> Thomas Tempelmann, http://www.tempel.org/ > >> Follow me on Twitter: http://twitter.com/#!/tempelorg > >> > > > > > > > > -- > > Thomas Tempelmann, http://www.tempel.org/ > > Follow me on Twitter: http://twitter.com/#!/tempelorg > > Klemens Klarhoelter-Selbst > > > > > > > > > > > > -- Thomas Tempelmann, http://www.tempel.org/ Follow me on Twitter: http://twitter.com/#!/tempelorg
