50 Tdl Functions

March 25, 2018 | Author: Shiva Shankar B | Category: String (Computer Science), Parameter (Computer Programming), Voucher, Data Type, Computer Programming


Comments



Description

TDL FunctionsAn Alphabetical-list of TDL functions (Partial list) is provided herewith for your reference. Function $$Abs Syntax $$Abs : <Expression> Return Value Same as parameter type String Remarks Returns the absolute (positive) value for the given expression $$Alias returns alternate value for the current Object. Stock Item and Ledger have Alias name. Example:Fetch Ledger-Alias using SQLRequest() Checks whether the current user has permission to access the specified object or report. $$CollectionList function is used to fetch the nth Method/field of a Collection. Sample program using $$CollectionList function Returns the Period starting date Returns the Period ending date $$FullList function is used to fetch any Method/Field of a Collection. The Method/Field values are separated by commas. Returns true if the selected mode is Print, otherwise false. Refer program TDL42 Checks whether the specified VoucherType is Contra Checks whether the specified VoucherType is CreditNote Checks whether the specified VoucherType is DebitNote Checks whether the specified VoucherType is Delivery Note Checks whether the parameter passed is empty or not. Parameter type can be String; Numeric; Date; Logical Example:$$IsEmpty: $$Value Refer program TDL34 Returns true if the current Object is the 1st object of the Collection. Refer program TDL42 Checks whether the specified VoucherType is Journal Checks whether the specified VoucherType is Memo Checks whether the specified VoucherType is Payment Voucher Checks whether the specified VoucherType is PhysicalStock Voucher Checks whether the specified VoucherType is Purchase Voucher $$Alias $$Alias $$Allow $$Allow : <mode> : <familyreport-name> $$CollectionList: <Method/Field> : <PositionNumber> : <Collection> $$DateFrom $$DateTo $$FullList : <Collection> : <FieldList> Logical $$CollectionList Method/ Field Datatype $$DateFrom $$DateTo $$FullList Date Date Method/ Field Datatype $$InPrintMode $$InPrintMode Logical $$IsContra $$IsCreditNote $$IsDebitNote $$IsDelNote $$IsEmpty $$IsContra : <VoucherTypeName> $$IsCreditNote : <VoucherTypeName> $$IsDebitNote : <VoucherTypeName> $$IsDelNote : <VoucherTypeName> $$IsEmpty: <parameter> Logical Logical Logical Logical Logical $$IsFirstObject $$IsFirstObject Logical $$IsJournal $$IsMemo $$IsPayment $$IsPhyStock $$IsPurchase $$IsJournal : <VoucherTypeName> $$IsMemo : <VoucherTypeName> $$IsPayment : <VoucherTypeName> $$IsPhyStock : <VoucherTypeName> $$IsPurchase : <VoucherTypeName> Logical Logical Logical Logical Logical Example:Select $$MonthEnd:$$MachineDate from Company $$IsVchTypeOf Family $$IsVchTypeOfFamily :<VoucherTypeName> $$MachineDate $$MachineDate Date $$MachineTime $$MachineTime String $$Max $$Max : <Expression> Same as parameter type $$Min $$Min : <Expression> Same as parameter type $$MonthEnd $$MonthEnd: <ExpD> Date .$$IsPurcOrder $$IsRcptNote $$IsReceipt $$IsRejIn $$IsRejOut $$IsRevJrnl $$IsSales $$IsSalesOrder $$IsStockJournal $$IsPurcOrder : <VoucherTypeName> $$IsRcptNote : <VoucherTypeName> $$IsReceipt : <VoucherTypeName> $$IsRejIn : <VoucherTypeName> $$IsRejOut : <VoucherTypeName> $$IsRevJrnl : <VoucherTypeName> $$IsSales : <VoucherTypeName> $$IsSalesOrder : <VoucherTypeName> $$IsStockJournal : <VoucherTypeName> Logical Logical Logical Logical Logical Logical Logical Logical Logical Checks whether the specified is Purchase Order Voucher Checks whether the specified is ReceiptNote Voucher Checks whether the specified is Receipt Voucher Checks whether the specified is RejectionIn Voucher Checks whether the specified is RejectionOut Voucher Checks whether the specified is Reverse Journal Voucher Checks whether the specified is Sales Voucher Checks whether the specified is Sales Order Voucher Checks whether the specified is StockJournal Voucher VoucherType VoucherType VoucherType VoucherType VoucherType VoucherType VoucherType VoucherType VoucherType Function $$LocaleString Syntax $$LocaleString: <string> Return Value Unicode string Logical Remarks Accepts a string parameter and returns unicode string. This is to provide multilingual support to Tally Checks whether the Field value of the <Field> is equal to the <ExpC> Example: $$IsVchTypeOfFamily: $VoucherTypeName : "Payment" Remarks: The function $$IsVchTypeOfFamily returns true if the Field-value of $VoucherTypeName is "Payment" Returns the Date as per your computer system settings Example:Select $$MachineDate from Company Returns the Time as per your computer system settings Example:Select $$MachineTime from Company Returns the Miniimum value. The parameter type can be Numeric. Date or String Example:$$Max:100:15 returns 100 Returns the Miniimum value. Date or String Example:$$Min:100:15 returns 15 Returns the ending date of the specified month. The parameter type can be Numeric. e.rtslink.blogspot. Returns the remaining word from the <ExpC> string after the Index.72 : 0. Refer Example at www. it returns the next 9 characters. Example:$$StringRemWord:2:"Shweta Softwares Gandhidham" This returns the word "Gandhidham".10 returns 125. Example:Select $$MonthStart:$$MachineDate from Company $$Round function is used to round-off a value Example:$$Round : 125. the word after 2 words as specified by the Index $$MonthStart $$MonthStart: <ExpD> Date $$Round $$Round : <ExpN> : <RoundLimit> Numeric $$RoundDown $$RoundDown : <ExpN> : <RoundLimit> Numeric $$RoundUp $$RoundUp : <ExpN> : <RoundLimit> Numeric $$SelectedCmps $$SelectedCmps Numeric $$SerialNumber $$SerialNumber String $$String $$String: <ExpN> String $$StringLength $$stringLength: <ExpC> Numeric $$StringPart $$StringPart: <expC>: <StartPos>: <Length> String $$StringRemWord $$StringRemWord: <Index>: <ExpC> String .i.70 $$Round function is used to round-off a value Example:$$Round : 125.72 : 0. beginning at the 8th character.e. Example:[Field: My Field] Set as: $$StringPart:"Shweta Softwares":7:9 Remarks:This will return "Computers".80 Returns the number of companies currently open in Tally Software.10 returns 125. Refer example at www.com Returns the Tally Serial Number. Example:[Field: My Field] Set as : $$String:500 Returns the length of the string parameter Example:[Field: My Field] Set as: $$StringLength:"Shweta Softwares" Used to extract a sub-string from another string.$$MonthOfDate $$MonthOfDate:<ExpD> Numeric Returns the Month (example 12) of the specified date Example:Select $$MonthOfDate:$$MachineDate from Company Returns the starting date of the specified month.blogspot.10 returns 125. Please note that the 1st character is numbered as 0.70 $$Round function is used to round-off a value Example:$$Round : 125.rtslink.com Converts numeric expression into string.72 : 0. i. i. Example:Select $$YearOfDate:$$MachineDate from Company The above returns the year (. the 2nd word as specified by the Index Specifies the System-name for the reserved string Returns the value for the System variable SVFROMDATE Example:Select $$SystemPeriodFrom from Company or Select ##SVFROMDATE from Company Returns the value for the System variable SVTODATE Example:Select $$SystemPeriodTo from Company or Select ##SVTODATE from Company Converts the string to upper-case Returns the value of a field/method. $$Zero pads the given string with zeros. in my system it returns 31-3-2008).e.i.EXE provided with RTSlink DLL. Refer program TDL34 Returns the Year for the specified Date. Example:[Field: My Field] Use: Name Field Validate: NOT $$IsEmpty:$$Value In the above code.$$StringWord $$StringWord: <Index>: <ExpC> String Returns the word specified by the Index. Example:$$Zero : "525" : 5 returns "00525" $$SysName $$SystemPeriod From $$SysName: <reservedstring> $$SystemPeriodFrom String Date $$SystemPeriodTo $$SystemPeriodTo Date $$Upper $$Value $$Upper: <ExpC> $$Value String Method/Field data type $$YearOfDate $$YearOfDate: <ExpD> Numeric $$YearEnd $$YearEnd: <ExprD> Date $$ZeroFIll $$ZeroFill : <ExpC> : <ExpN> String You can test check the TDL functions by writing TDL code or by using WRAPPER. function $$Value is used which returns the value of the field 'My Field'.e 2007) Returns the Year end-date for the Current year (based on the Date passed as parameter) Example:Select $$YearEnd:##SVTODATE from Company The above returns the year-end date (ex. Example:$$StringWord:2:"Shweta Softwares Gandhidham" This returns the word "Computers". .
Copyright © 2024 DOKUMEN.SITE Inc.