Hello Richard

> Dies at the line containing 'Coct' with message: unknown identifier
>
> but I'm sure this way is good, as I can remember reading something about
> this in the postgres doc's but couldn't figure out how to do the
> substitution.

OK, I thougt it is a Gambas converting function, but it isn't.
It should convert a given number into an octal number, return the number as a 
string.
So here it is:

PRIVAT FUNCTION COct(num as Integer) as String
  DIM octnumber AS NEW Interger[]
  DIM octstring as String

  octnumber.Add(int(num / 64))
  octnumber.Add(int((num MOD 64) / 8 ))
  octnumber.Add((num Mod 64) MOD 8)
  octstring = octnumber[0] & octnumber[1] & octnumber[2]
  RETURN octstring
END

> Next step?

Test it.

Fine regards
Rolf

Attachment: signature.asc
Description: This is a digitally signed message part.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to