Page 1 of 1

Couple of clarifications please

PostPosted: Thu Feb 04, 2016 5:42 pm
by johngb
Code: Select all
Public Function Len(ByVal value As String) As Byte
   addr2 = AddressOf(value)
   Len = 0
   While *(addr2+) <> 0
      Len += 1
   End While
End Function


I assume 'Len += 1' means increment Len by 1.
and I am guessing that *(addr2+) means something like contents of Addr2

Couldn't find anything in the reference explaining these operators.

JohnB

Re: Couple of clarifications please

PostPosted: Thu Feb 04, 2016 9:08 pm
by bitfogav
johngb wrote:I assume 'Len += 1' means increment Len by 1.


Yes..

You may find some info here for Addr http://www.firewing.info/forum/viewtopic.php?t=39