-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kem
Tekinay

>  for i as integer = 1 to kReps
>    dim s as string = "something"
>    s = s + " "
>    s = s + "else"
>  next

That is a bad coding, as you keep to create the same string at every
execution of the loop; then your create temporary strings two times.
A better code would be:

Dim S As String = "something"
Dim T As New String
For I As Integer = 1 to kReps
  T = S + " " + "else"
Next

I know the code is simply an example, but it is very inefficient.
--
~Alberto Paderno

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to