4D v17

Converting 4D View plug-in formulas

Home

 
4D v17
Converting 4D View plug-in formulas

Converting 4D View plug-in formulas  


 

As stated in the Converting 4D View documents page, most of the 4D View plug-in document contents and properties can be converted in 4D View Pro documents.

Formulas are also converted. However, the formula languages of 4D View and 4D View Pro are somewhat different. Three compatibility cases can occur:

  • a 4D View feature (operator, constant, function) is exactly the same in 4D View Pro: in this case, the conversion is transparent.
  • a 4D View feature is supported in 4D View Pro through a different function or operator: in this case, an automatic mapping is performed
  • a 4D View feature is partially or not supported in 4D View Pro: in this case, it will be necessary to adapt your converted formulas to make them work as expected. 

The following tables list 4D View formula features and their corresponding features in 4D View Pro.

4D View4D View Pro
Numeric operators
Addition++
Substraction--
Multiplication**
Division//
Remainder\MOD
Integer division÷TRUNC(a/b)
Exponent^^
Percentage%%
Boolean operators
AND&AND
OR|OR
Not~NOT
String operators
concatenation+&
destruction-SUBSTITUTE, ex: "Down Trend"-"Down" is replaced by SUBSTITUTE("Down Trend","Down","")
position\FIND (case sensitive) or SEARCH (case insensitive)
Date operators
date+days->date++
date+time->date+time of day++
date-days->date--
date-date->number of days--
Duration operators
addition++
substraction--
multiplication**
division//
Comparison operators
equality==
difference#<>
greater than>>
less than<<
greater than or equal to>=>=
less than or equal to<=<=

4D View4D View ProComment
AbsABS
AddToDateDATEAddToDate(date;years;months;days) is replaced by DATE(YEAR(date)+years,MONTH(date)+months,DAY(date)+days)
date+timeTIMEDATE(date) + TIME(time)
AndAND
ArcCosACOS
ArcSinASIN
ArcTanATAN
Area-n/a (no plug-in area)
AverageAVERAGE
CellINDIRECT
ColumnCOLUMNLETTERCOLUMN returns a number (not a letter)
CosCOS
CountCOUNTA
CurrentDateTODAY
CurrentTimeNOW
CVCompoundPVCVCompound(1%;5;1000) is replaced by PV(1%,5,-1000)
CVSimplePVCVSimple(1%;5;5*1000) is replaced by PV(1%,5,,-1000) -- note the two consecutive commas
EmptyISBLANK
Eval4D-Currently not available
ExpEXP
FalseFALSE
FindLOOKUP
FindCellFINDCELL
FVCompoundFVFVCompound(1%;35;35*1000) is replaced by FV(1%,35,-1000)
FVSimpleFVFVSimple(12%;35;35*1000) is replaced by FV(12%,35,,-35*1000) -- note the two consecutive commas
IfIF
LengthLEN
LogLN
MaxMAX
MinMIN
MonthlyValuePMTMonthlyValue(10.5%/12,48,6500) is replaced by PMT(10.5%/12,48,-6500)
NotNOT
OrOR
PeriodNumber1NPERPeriodNumber1(10.5%/12;166.42;6500) is replaced by NPER(10.5%/12,-166.42,6500)
PeriodNumber2NPERPeriodNumber2(10.5%/12,5000,3000) is replaced by NPER(10.5%/12,,3000,-5000) -- note the two consecutive commas
PiPI
RandomRAND
RangeINDIRECTRange("A1";"A3") is replaced by INDIRECT("A1:A3") -- note the colon character between A1 and A3
Rate1RATERate1(5;1000;3000) is replaced by RATE(5,-1000,3000)
Rate2RATERate2(5,6000,2800) is replaced by RATE(5,,2800,-6000) -- note the two consecutive commas
RoundingROUND
RowROW
SinSIN
SquareRootSQRT
StdDeviationSTDEV.P
StringTEXT
SubStringMID
SumSUM
TanTAN
TrueTRUE
TypeTYPEReturned types in 4D View Pro are different from 4D View
VarianceVAR.P



See also 

Converting 4D View documents

 
PROPERTIES 

Product: 4D
Theme: 4D View Pro Formulas

 
PAGE CONTENTS 
 
HISTORY 

 
ARTICLE USAGE

4D View Pro Reference ( 4D v17)