Couple of clarifications please

Discuss the Firewing language

Couple of clarifications please

Postby johngb » Thu Feb 04, 2016 5:42 pm

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
johngb
 
Posts: 19
Joined: Thu Dec 25, 2014 12:00 pm

Re: Couple of clarifications please

Postby bitfogav » Thu Feb 04, 2016 9:08 pm

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
User avatar
bitfogav
 
Posts: 75
Joined: Sat Nov 17, 2012 11:46 am
Location: UK


Return to Language

Who is online

Users browsing this forum: No registered users and 2 guests

cron

x