[Gambas-user] File Format Help

Christof Thalhofer chrisml at deganius.de
Thu Jun 17 20:18:51 CEST 2021


Am 17.06.21 um 20:09 schrieb Christof Thalhofer:

> Public Function Get() As String
> 
>     Return fromUserName & gb.lf & toUserName '... and so on
> 
> End

Does not work, this is correct:

----------------------------------------------------------------

Public Function Get() As String

    Return Me.fromUserName & gb.lf & Me.toUserName '... and so on

End

-----------------------------------------------------------------

Sorry, I also forgot the Usage:

-----------------------------------------------------------------
Public Sub Main()

    Dim FMessage As New CFidoMessage

    With FMessage
        .fromUserName = "Albert"
        .toUserName = "Nils"
    End With

    File.Save("/tmp/1.msg", FMessage.Get())

End
-----------------------------------------------------------------



Alles Gute

Christof Thalhofer

-- 
Dies ist keine Signatur


More information about the User mailing list