Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. sponsors. rss.
 From: Stefan Wuebbe
  Where is Stefan Wuebbe?
 Hamburg
 Germany
 Stefan Wuebbe
 To: ANIL KAMAT
  Where is ANIL KAMAT?
 sirsi
 India
 ANIL KAMAT
 Tags
Subject: RE: VB code to vfp code tally export
Thread ID: 210126 Message ID: 210127 # Views: 45 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Visual Basic
Date: Saturday, January 03, 2009 2:33:05 PM         
   


The Dim lines are variable declarations, this line for instance:

> Dim LD As TLedger

... translates to:

Local LD As TLedger
LD = CreateObject('TLedger')



The "If ... Else ... End If" translates to "IF ... ELSE ... ENDIF", and MsgBox in VB is MessageBox() in Vfp:

> MsgBox "Please check whether Tally is running."

MESSAGEBOX("Please check whether Tally is running.")




hth
-Stefan


> Anil
>
> I want help in converting the code below in visual basic to visual foxpro.
>
>
> Dim LD As TLedger
> Dim TM As New TMasters
> Dim TC As New TLCore
>
> If TC.IsTallyRunning(sServer) = True Then
> LD.Name_ = "My New Ledger"
> LD.Parent_ = "Sundry Creditors"
> LD.ExciseLedgerClassification_ = "Default"
> LD.IsBillwiseOn_ = "Yes"
> LD.IsCostCentresOn_ = "No"
> LD.IsInterestOn_ = "No"
> LD.AllowInMobile_ = "No"
> LD.IsCondensed_ = "No"
> LD.AffectsStock_ = "No"
> LD.ForPayroll_ = "No"
> LD.InterestOnBillwise_ = "No"
> LD.OverrideInterest_ = "No"
> LD.OverrideAdvInterest_ = "No"
> LD.UseForVAT_ = "No"
> LD.IgnoreTDSExempt_ = "No"
> LD.IsTCSApplicable_ = "No"
> LD.IsTDSApplicable_ = "No"
> LD.IsFBTApplicable_ = "No"
> LD.IsGSTApplicable_ = "No"
> s = TM.XLedger_90(sCurrentCompany, LD, "Alter")
> Else
> MsgBox "Please check whether Tally is running."
> End If



COMPLETE THREAD
VB code to vfp code tally export Posted by ANIL KAMAT @ 1/3/2009 2:13:28 PM
RE: VB code to vfp code tally export Posted by Stefan Wuebbe @ 1/3/2009 2:33:05 PM
RE: VB code to vfp code tally export Posted by Anders Altberg @ 1/3/2009 3:59:14 PM
RE: VB code to vfp code tally export Posted by Glenn Villar @ 1/4/2009 2:00:48 AM