Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
More help translating VB code into VFP code
Message
De
14/06/2001 12:19:11
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00519289
Message ID:
00519476
Vues:
15
>You're right I had modified one line already. So Sorry. Original VB code follows:
>
>Status reporting for fax modem -
>
>Private Sub FaxManJr1_Status(ByVal pStatObj As FaxManJrCtl.IfaxStatusObj)
> Label1.Caption = pStatObj.CurrentStatusDesc
>End Sub
>
>And here's the other set of VB code contained in my other VB translate thread:
>
>See what FaxMan Jr. is doing -
>
>Private Sub FaxManJr1_Message(ByVal bsMsg As String, ByVal bNewLine As Integer)
> Text1.SelText = bsMsg
> If bNewLine Then Text1.SelText = vbCrLf
>End Sub

Ooops. Wasn't your intention to get that in VFP.

*Status event of activex would look like
lparameters pStatObj
thisform.Label1.Caption = pStatObj.CurrentStatusDesc

*Message method/event of activex would look like
lparameters bsMsg, bNewLine
thisform.Text1.SelText = bsMsg + iif(bNewLine # 0, chr(13)+chr(10),'')

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform