78
Is it possible to change the line's height

with thisform.CalcEdit1
	.MultiLine = .T.
	.Text = "(1+6.25)/4*6/3"
	.InsertText("(2+6.25)/4*6/3\r\n",1)
	.InsertText("(3+6.25)/4*6/3\r\n",1)
	.InsertText("(4+6.25)/4*6/3\r\n",1)
	.InsertText("Total")
	.LineHeight = "value + 8 * dpi"
	.DrawGridLines = .T.
endwith
77
How do I put a picture on the control's background

with thisform.CalcEdit1
	.Picture = thisform.CalcEdit1.ExecuteTemplate("loadpicture(`c:\exontrol\images\zipdisk.gif`)")
	.PictureDisplay = 0
	.MultiLine = .T.
	.Text = "(1+6.25)/4*6/3"
	.InsertText("\r\n",1)
	.InsertText("\r\n",1)
	.InsertText("\r\n",1)
	DEBUGOUT( "Expression: " )
	DEBUGOUT( .Text )
	DEBUGOUT( "Result: " )
	DEBUGOUT( .Result() )
endwith
76
How do I get the numbers only, with no Total fields (method 2)

with thisform.CalcEdit1
	.MultiLine = .T.
	.FormatResult = "<fgcolor=808080><r> = %%"
	.InsertText("100 * 200")
	.InsertText("300 * 400 * 1.5")
	.InsertText("200 + ( 400 * 1.5 + 300 / 1.19)")
	.InsertText("Total")
	DEBUGOUT( .ExecuteTemplate("FormatABC("+chr(34)+"lower(A) replace `total` with ``"+chr(34)+", Text)") )
endwith
75
How do I get the numbers only, with no Total fields (method 1)

with thisform.CalcEdit1
	.MultiLine = .T.
	.FormatResult = "<fgcolor=808080><r> = %%"
	.InsertText("100 * 200")
	.InsertText("300 * 400 * 1.5")
	.InsertText("200 + ( 400 * 1.5 + 300 / 1.19)")
	.InsertText("Total")
	DEBUGOUT( .FormatABC("lower(A) replace `total` with ``",.Text) )
endwith
74
How do I customize the format to display the result (right,local,2 decimals,less,font)

with thisform.CalcEdit1
	.MultiLine = .T.
	.LineHeight = "value + 8 * dpi"
	.FormatLocal = "( value < 10000 ? `<fgcolor=000000><b><font ;16>` : ``) + (value format `2`)"
	.FormatResult = "<fgcolor=808080><r> = %l%"
	.InsertText("100 * 200")
	.InsertText("300 * 400 * 1.5")
	.InsertText("200 + ( 400 * 1.5 + 300 / 1.19)")
endwith
73
How do I customize the format to display the result (right,local,2 decimals,greater,color)

with thisform.CalcEdit1
	.MultiLine = .T.
	.FormatLocal = "( value > 10000 ? `<fgcolor=FF0000><b>` : ``) + (value format `2`)"
	.FormatResult = "<fgcolor=808080><r> = %l%"
	.InsertText("100 * 200")
	.InsertText("300 * 400 * 1.5")
	.InsertText("200 + ( 400 * 1.5 + 300 / 1.19)")
endwith
72
How do I customize the format to display the result (right,local,all decimals)

with thisform.CalcEdit1
	.MultiLine = .T.
	.FormatLocal = "value"
	.FormatResult = "<fgcolor=808080><r> = %l%"
	.InsertText("100 * 200")
	.InsertText("300 * 400 * 1.5")
	.InsertText("200 + ( 400 * 1.5 + 300 / 1.19)")
endwith
71
How do I customize the format to display the result (right,local,2 decimals)

with thisform.CalcEdit1
	.MultiLine = .T.
	.FormatLocal = "value format `2`"
	.FormatResult = "<fgcolor=808080><r> = %l%"
	.InsertText("100 * 200")
	.InsertText("300 * 400 * 1.5")
	.InsertText("200 + ( 400 * 1.5 + 300 / 1.19)")
endwith
70
How do I customize the format to display the result (right,local,curency)

with thisform.CalcEdit1
	.MultiLine = .T.
	.FormatLocal = "currency(value)"
	.FormatResult = "<fgcolor=808080><r> = %l%"
	.InsertText("100 * 200")
	.InsertText("300 * 400 * 1.5")
	.InsertText("200 + ( 400 * 1.5 + 300 / 1.19)")
endwith
69
How do I customize the format to display the result (right,local)

with thisform.CalcEdit1
	.MultiLine = .T.
	.FormatResult = "<fgcolor=808080><r> = %l%"
	.InsertText("100 * 200")
	.InsertText("300 * 400 * 1.5")
	.InsertText("200 + ( 400 * 1.5 + 300 / 1.19)")
endwith
68
How do I customize the format to display the result (right)

with thisform.CalcEdit1
	.MultiLine = .T.
	.FormatResult = "<fgcolor=808080><r> = %%"
	.InsertText("100 * 200")
	.InsertText("300 * 400 * 1.5")
	.InsertText("200 + ( 400 * 1.5 + 300 / 1.19)")
endwith
67
How do I customize the format to display the result (default)

with thisform.CalcEdit1
	.MultiLine = .T.
	.InsertText("100 * 200")
	.InsertText("300 * 400 * 1.5")
	.InsertText("200 + ( 400 * 1.5 + 300 / 1.19)")
endwith
66
How can I force a line to be there all the time, so user can not delete it, for instance Total

with thisform.CalcEdit1
	.MultiLine = .T.
	.InsertLockedText("Total")
	.InsertText("100")
	.InsertText("200")
	.InsertText("300")
endwith
65
Is it possible to get the value of specified variable

with thisform.CalcEdit1
	.MultiLine = .T.
	.InsertText("100")
	.InsertText("200")
	.InsertText("300")
	.InsertText("TVA = Total * 0.19")
	.InsertText("Total")
	DEBUGOUT( "The TVA is: " )
	DEBUGOUT( .Variable("TVA") )
endwith
64
How do I get the total

with thisform.CalcEdit1
	.MultiLine = .T.
	.InsertText("100")
	.InsertText("200")
	.InsertText("300")
	.InsertText("Total")
	DEBUGOUT( "The total is: " )
	DEBUGOUT( .Variable("Total") )
endwith
63
How do I get the easter date

with thisform.CalcEdit1
	.MultiLine = .T.
	.CalcType = -1
	.ClearWildFormats
	.FormatResult = "<r><fgcolor=008000><b>(%%)"
	.AllowComments = "<fgcolor=008000>//"
	.AddWildFormat("*=*<fgcolor=008000>//*")
	.AddWildFormat("<fgcolor=808080>V*=*")
	.AddWildFormat("<b>EasterSundayDay*=*")
	.BackColorLockedLine = RGB(0,0,0)
	.ForeColorLockedLine = RGB(0,0,0)
	.Text = "Year = 2018 // change here the year, to get the Easter Sunday for giving year"
	.InsertLockedText("V1 = (((255 - 11 * (Year mod 19)) - 21) mod 30)")
	.InsertLockedText("V2 = ((V1 + 21) + (V1 > 48 ? -1 : 0) + 6 - ((Year + int(Year / 4)) + V1 + (V1 > 48 ? -1 : 0) + 1) mod 7)")
	.InsertLockedText("EasterSundayDay = date(dateS('3/1/' + Year)  + V2)")
	DEBUGOUT( "Easter Sunday Day is " )
	DEBUGOUT( .Variable("EasterSundayDay") )
	DEBUGOUT( " for year " )
	DEBUGOUT( .Variable("Year") )
endwith
62
I've got a red line while I type into the control. How can I disable that (sample 2)

with thisform.CalcEdit1
	.AllowFormatInvalidOnTyping = .F.
	.MultiLine = .T.
	.Text = "100 + 200(invalid)"
endwith
61
I've got a red line while I type into the control. How can I disable that (sample 1)

with thisform.CalcEdit1
	.FormatInvalid = ""
	.Text = "100 + 200(invalid)"
endwith
60
How do I specify the color to show the locked lines

with thisform.CalcEdit1
	.MultiLine = .T.
	.AllowVariables = "="
	.DrawGridLines = .T.
	.LineHeight = "value + 8 * dpi"
	.GridLineColor = RGB(196,196,196)
	.FormatResult = "<r>[=%l%]"
	.FormatLocal = "currency(value)"
	.FormatTotalResult = "<r><b> <fgcolor=FFFFFF>= %l%</b>"
	.BackColorLockedLine = RGB(0,0,1)
	.ForeColorLockedLine = RGB(255,255,255)
	.InsertText("100")
	.InsertText("200")
	.InsertLockedText("VAT = Total * 0.20")
	.InsertLockedText("Total")
endwith
59
Can I remove the colors that indicates locked lines

with thisform.CalcEdit1
	.MultiLine = .T.
	.AllowVariables = "="
	.DrawGridLines = .T.
	.LineHeight = "value + 8 * dpi"
	.GridLineColor = RGB(196,196,196)
	.FormatResult = "<r><fgcolor=808080>[=%l%]"
	.FormatLocal = "currency(value)"
	.FormatTotalResult = "<r><b> = %l%</b>"
	.BackColorLockedLine = RGB(0,0,0)
	.ForeColorLockedLine = RGB(0,0,0)
	.InsertText("100")
	.InsertText("200")
	.InsertLockedText("VAT = Total * 0.20")
	.InsertLockedText("Total")
endwith
58
Can I add lines to the control, so the user can not remove/delete them ( locked lines )

with thisform.CalcEdit1
	.MultiLine = .T.
	.CalcType = -1
	.AllowVariables = "="
	.DrawGridLines = .T.
	.LineHeight = "value + 8 * dpi"
	.GridLineColor = RGB(196,196,196)
	.FormatResult = "<r><fgcolor=808080>[=%l%]"
	.FormatLocal = "currency(value)"
	.FormatTotalResult = "<r><b> = %l%</b>"
	.Text = "1000"
	.InsertText("2000")
	.InsertLockedText("Commission = Total * 0.05 + (Total ? 2.95 : 0)")
	.InsertLockedText("Total")
endwith
57
Is it possible to highlight a specified line

with thisform.CalcEdit1
	.MultiLine = .T.
	.AllowVariables = "="
	.DrawGridLines = .T.
	.LineHeight = "value + 8 * dpi"
	.GridLineColor = RGB(196,196,196)
	.FormatResult = "<r><fgcolor=808080>[=%l%]"
	.FormatLocal = "currency(value)"
	.FormatTotalResult = "<r><b> = %l%</b>"
	.AddWildFormat("<fgcolor=00FF00>*<b>Commission</b>*=*")
	.Text = "100.50 + 123"
	.InsertText("200 + 20/5")
	.InsertText("300 + 3 * 15")
	.InsertText("400 + 200 * (10 + 12/45)")
	.InsertText("50 * 45")
	.InsertText("VAT = Total * 0.19")
	.InsertText("NET = Total - VAT")
	.InsertText("Monthly = Total / 12")
	.InsertText("Commission = Total * 0.05 + 2.95")
	.InsertText("Total")
endwith
56
Is it possible to display the result as currency

with thisform.CalcEdit1
	.MultiLine = .T.
	.AllowVariables = "="
	.DrawGridLines = .T.
	.LineHeight = "value + 8 * dpi"
	.GridLineColor = RGB(196,196,196)
	.FormatLocal = "currency(value)"
	.FormatTotalResult = "<r><b> = %l%</b>"
	.BackColorTotal = RGB(240,240,240)
	.Text = "100.50"
	.InsertText("200")
	.InsertText("300")
	.InsertText("400")
	.InsertText("VAT = Total * 0.19")
	.InsertText("NET = Total - VAT")
	.InsertText("Total")
endwith
55
Is it possible to display the result with no decimals

with thisform.CalcEdit1
	.MultiLine = .T.
	.AllowVariables = "="
	.DrawGridLines = .T.
	.LineHeight = "value + 8 * dpi"
	.GridLineColor = RGB(196,196,196)
	.FormatLocal = "value format `0`"
	.FormatTotalResult = "<r><b> = %l%</b>"
	.BackColorTotal = RGB(240,240,240)
	.Text = "100.50"
	.InsertText("200")
	.InsertText("300")
	.InsertText("400")
	.InsertText("VAT = Total * 0.19")
	.InsertText("NET = Total - VAT")
	.InsertText("Total")
endwith
54
Is it possible to display the result exactly how it is defined in the control panel

with thisform.CalcEdit1
	.MultiLine = .T.
	.AllowVariables = "="
	.DrawGridLines = .T.
	.LineHeight = "value + 8 * dpi"
	.GridLineColor = RGB(196,196,196)
	.FormatLocal = "value format ``"
	.FormatTotalResult = "<r><b> = %l%</b>"
	.BackColorTotal = RGB(240,240,240)
	.Text = "100.50"
	.InsertText("200")
	.InsertText("300")
	.InsertText("400")
	.InsertText("VAT = Total * 0.19")
	.InsertText("NET = Total - VAT")
	.InsertText("Total")
endwith
53
How can I count the lines

with thisform.CalcEdit1
	.MultiLine = .T.
	.AllowCount = "count"
	.AllowSubCount = "subcount"
	.DrawGridLines = .T.
	.LineHeight = "value + 8 * dpi"
	.GridLineColor = RGB(196,196,196)
	.InsertText("100")
	.InsertText("200")
	.InsertText("SubCount")
	.InsertText("300")
	.InsertText("400")
	.InsertText("500")
	.InsertText("SubCount")
	.InsertText("Count")
endwith
52
How can I compute the average
with thisform.CalcEdit1
	.MultiLine = .T.
	.AllowVariables = "="
	.DrawGridLines = .T.
	.LineHeight = "value + 8 * dpi"
	.GridLineColor = RGB(196,196,196)
	.FormatTotalResult = "<r><b> = %l%</b>"
	.BackColorTotal = RGB(240,240,240)
	.Text = "Average = Total / Count"
	.InsertText("100")
	.InsertText("200")
	.InsertText("300")
	.InsertText("400")
	.InsertText("VAT = Total * 0.19")
	.InsertText("NET = Total - VAT")
	.InsertText("Total")
endwith
51
Variables or Computed Fields

with thisform.CalcEdit1
	.MultiLine = .T.
	.AllowVariables = "="
	.DrawGridLines = .T.
	.LineHeight = "value + 8 * dpi"
	.GridLineColor = RGB(196,196,196)
	.FormatTotalResult = "<r><b> = %l%</b>"
	.BackColorTotal = RGB(240,240,240)
	.Text = "100"
	.InsertText("200")
	.InsertText("300")
	.InsertText("400")
	.InsertText("VAT = Total * 0.19")
	.InsertText("NET = Total - VAT")
	.InsertText("Total")
endwith
50
I have noticed that definition of the variable is shown in italics. Can I change that

with thisform.CalcEdit1
	.MultiLine = .T.
	.AllowVariables = "="
	.ClearWildFormats
	.AddWildFormat("<b>*=*")
	.Text = "A = 400"
	.InsertText("")
	.InsertText("B = A + 0.22")
	.InsertText("A + B")
	.InsertText("B = B * .19")
	.InsertText("A + B")
endwith
49
I have noticed that definition of the variable is shown in italics. Can I remove that

with thisform.CalcEdit1
	.MultiLine = .T.
	.AllowVariables = "="
	.ClearWildFormats
	.Text = "A = 300"
	.InsertText("")
	.InsertText("B = A + 0.22")
	.InsertText("A + B")
	.InsertText("B = B * .19")
	.InsertText("A + B")
endwith
48
Can I define variables (sample 2)

with thisform.CalcEdit1
	.MultiLine = .T.
	.AllowVariables = "is"
	.ClearWildFormats
	.AddWildFormat("<b>*is*")
	.Text = "A is 200"
	.InsertText("")
	.InsertText("B is A + 0.22")
	.InsertText("A + B")
	.InsertText("B is B * .19")
	.InsertText("A + B")
endwith
47
Can I define variables (sample 1)

with thisform.CalcEdit1
	.MultiLine = .T.
	.AllowVariables = "="
	.Text = "A = 100.22"
	.InsertText("")
	.InsertText("B = A + 0.22")
	.InsertText("A + B")
	.InsertText("B = B * .19")
	.InsertText("A + B")
endwith
46
Comments and Prefixes

with thisform.CalcEdit1
	.MultiLine = .T.
	.AllowPrefixes = "<fgcolor=808080>:</fgcolor>"
	.AllowComments = "<fgcolor=008080>'</fgcolor>"
	.Text = "Field A: 100 ' this is the field A"
	.InsertText("Field B: 200 ' this is the field B")
	.InsertText("Total")
endwith
45
Can I display something at the start of each line

with thisform.CalcEdit1
	.MultiLine = .T.
	.AllowPrefixes = "<b>:</b>"
	.Text = "Field A: 100"
	.InsertText("Field B: 200")
	.InsertText("Total")
endwith
44
I can not use TAB key. Is it possible
with thisform.CalcEdit1
	.UseTabKey = .T.
endwith
43
Does your control support comments

with thisform.CalcEdit1
	.MultiLine = .T.
	.CalcType = -1
	.AllowComments = "<fgcolor=008080>//</fgcolor>"
	.Text = "104 mod 51 // modulo function"
	.InsertText("int(104/51)  // int function")
	.InsertText("51 * int(104/51) + (104 mod 51)  // check")
endwith
42
Can I use the modulo function ( rest )

with thisform.CalcEdit1
	.MultiLine = .T.
	.CalcType = -1
	.Text = "104 mod 51"
	.InsertText("int(104/51)")
	.InsertText("51 * int(104/51) + (104 mod 51)")
endwith
41
Can I use acos function

with thisform.CalcEdit1
	.CalcType = -1
	.Text = "acos(cos(1))"
endwith
40
Can I use asin function

with thisform.CalcEdit1
	.CalcType = -1
	.Text = "asin(sin(1))"
endwith
39
Can I use cos function

with thisform.CalcEdit1
	.CalcType = -1
	.Text = "cos(1)"
endwith
38
Can I use sin function

with thisform.CalcEdit1
	.CalcType = -1
	.Text = "sin(1)"
endwith
37
Can I use abs function (absolute part of the number)

with thisform.CalcEdit1
	.CalcType = -1
	.Text = "abs(-100.99)"
endwith
36
Can I use round function

with thisform.CalcEdit1
	.CalcType = -1
	.Text = "round(100.99)"
endwith
35
Can I use int function (integer part of a number)

with thisform.CalcEdit1
	.CalcType = -1
	.Text = "int(100.99)"
endwith
34
Can I use sqrt function (square root of a number)

with thisform.CalcEdit1
	.CalcType = -1
	.Text = "sqrt(100)"
endwith
33
How can I show invalid lines with a larger font

with thisform.CalcEdit1
	.MultiLine = .T.
	.LineHeight = "value + 8 *dpi"
	.DrawGridLines = .T.
	.FormatInvalid = "<u><font ;12> </font></u>"
	.InsertText("100")
	.InsertText("k200")
	.InsertText("300")
endwith
32
I've noticed that while I type the text is shown in red. How can I change that

with thisform.CalcEdit1
	.FormatInvalid = ""
	.Text = "100 * 200"
endwith
31
Can I enlarge the height of each line

with thisform.CalcEdit1
	.MultiLine = .T.
	.LineHeight = "value + 8 * dpi"
	.DrawGridLines = .T.
	.InsertText("100")
	.InsertText("200")
	.InsertText("300")
	.InsertText("Total")
endwith
30
How can I show grid lines

with thisform.CalcEdit1
	.MultiLine = .T.
	.DrawGridLines = .T.
	.GridLineColor = RGB(0,0,0)
	.InsertText("100")
	.InsertText("200")
	.InsertText("300")
	.InsertText("Total")
endwith
29
How can I display the result of the total with a larger font

with thisform.CalcEdit1
	.MultiLine = .T.
	.DrawGridLines = .T.
	.LineHeight = "value  + 8 * dpi"
	.FormatTotalResult = "<r><b><font ;14>%l%</font></b>"
	.AllowTotal = "<b><font ;14>Total</font></b>"
	.InsertText("100")
	.InsertText("200")
	.InsertText("300")
	.InsertText("Total")
endwith
28
Is it possible to show the Total / SubTotal with a different background color

with thisform.CalcEdit1
	.MultiLine = .T.
	.AllowTotal = "<bgcolor=A0A0A0><b>Total</b></bgcolor>"
	.AllowSubTotal = "<bgcolor=E0E0E0><b>SubTotal</b></bgcolor>"
	.InsertText("100")
	.InsertText("200")
	.InsertText("SubTotal")
	.InsertText("300")
	.InsertText("400 * 1.5")
	.InsertText("SubTotal")
	.InsertText("Total")
endwith
27
Is it possible to show the Total / SubTotal with a different background color

with thisform.CalcEdit1
	.MultiLine = .T.
	.BackColorTotal = RGB(196,196,196)
	.BackColorSubTotal = RGB(240,240,240)
	.InsertText("100")
	.InsertText("200")
	.InsertText("SubTotal")
	.InsertText("300")
	.InsertText("400 * 1.5")
	.InsertText("SubTotal")
	.InsertText("Total")
endwith
26
How can I change the color to show the numbers

with thisform.CalcEdit1
	.FormatNumbers = "<fgcolor=FF0000> </fgcolor>"
	.Text = "1 + 2 + 3 + 4"
endwith
25
The numbers are shown in blue. How can I remove that

with thisform.CalcEdit1
	.FormatNumbers = ""
	.Text = "1 + 2 + 3 + 4"
endwith
24
How can I export the entire text, including the result

with thisform.CalcEdit1
	.MultiLine = .T.
	.Text = "100 * 1.5"
	.InsertText("120 * 1.5")
	.InsertText("130 * 1.5")
	.InsertText("Total")
	DEBUGOUT( .Export )
endwith
23
Is it possible to display the result, using the current regional locale

with thisform.CalcEdit1
	.MultiLine = .T.
	.DrawGridLines = .T.
	.FormatResult = " <fgcolor=808080>[=%l%]</fgcolor>"
	.FormatTotalResult = " <b>[=%l%]</b>"
	.InsertText("100 * 100")
	.InsertText("200 * 200")
	.InsertText("300 * 300")
	.InsertText("Total")
endwith
22
How can I change the format to display the total result (right)

with thisform.CalcEdit1
	.MultiLine = .T.
	.DrawGridLines = .T.
	.FormatTotalResult = "<b><fgcolor=FF0000> = %l%</fgcolor></b>"
	.AllowTotal = "<b><fgcolor=00FF00>Total</fgcolor></b>"
	.InsertText("100")
	.InsertText("200")
	.InsertText("300")
	.InsertText("Total")
endwith
21
How can I change the format to display the total result (right)

with thisform.CalcEdit1
	.MultiLine = .T.
	.DrawGridLines = .T.
	.LineHeight = "value  + 4 * dpi"
	.FormatTotalResult = "<r><b><font ;12>%l%</font></b>"
	.AllowTotal = "<b><font ;12>Total</font></b>"
	.InsertText("100")
	.InsertText("200")
	.InsertText("300")
	.InsertText("Total")
endwith
20
Is it possible to rename the SubTotal

with thisform.CalcEdit1
	.MultiLine = .T.
	.AllowSubTotal = "<fgcolor=FF0000>Current Amount"
	.InsertText("100")
	.InsertText("200")
	.InsertText("Current Amount")
	.InsertText("300")
	.InsertText("400")
	.InsertText("Current Amount")
	.InsertText("Total")
endwith
19
How can I disable the sub-totals

with thisform.CalcEdit1
	.MultiLine = .T.
	.AllowSubTotal = ""
	.InsertText("100")
	.InsertText("200")
	.InsertText("SubTotal")
	.InsertText("300")
	.InsertText("400")
	.InsertText("SubTotal")
	.InsertText("Total")
endwith
18
How can I add sub-totals

with thisform.CalcEdit1
	.MultiLine = .T.
	.AllowComments = "<fgcolor=008000>'"
	.AddWildFormat("<i>*=*<fgcolor=008000>'*")
	.AllowVariables = "="
	.DrawGridLines = .T.
	.LineHeight = "value + 8 * dpi"
	.GridLineColor = RGB(196,196,196)
	.FormatLocal = "currency(value)"
	.FormatTotalResult = "<r><b> = %l%</b>"
	.FormatSubTotalResult = "<r><fgcolor=808080>[<b> = %l%</b>]"
	.FormatResult = "<r><fgcolor=808080>(%l%)"
	.BackColorTotal = RGB(240,240,240)
	.BackColorLockedLine = RGB(0,0,0)
	.ForeColorLockedLine = RGB(0,0,0)
	.CalcType = -1
	.Text = "100 + 200"
	.InsertText("200 * 1.5")
	.InsertText("SubA = SubTotal ' first subtotal")
	.InsertText("300 + (200+300)/2")
	.InsertText("400 + 500")
	.InsertText("SubB = SubTotal ' second subtotal")
	.InsertLockedText("VAT = Total * 0.19")
	.InsertLockedText("Commision = Total * 0.05")
	.InsertLockedText("NET = (Total - VAT) - Commision")
	.InsertLockedText("Total")
endwith
17
Is it possible to disable the Total

with thisform.CalcEdit1
	.AllowTotal = ""
	.MultiLine = .T.
	.InsertText("100")
	.InsertText("200")
	.InsertText("300")
	.InsertText("Total")
endwith
16
Is it possible to rename the Total to Sum

with thisform.CalcEdit1
	.AllowTotal = "<fgcolor=FF0000><b>Sum</b></fgcolor>"
	.MultiLine = .T.
	.InsertText("100")
	.InsertText("200")
	.InsertText("300")
	.InsertText("Sum")
endwith
15
Is it possible to add all lines

with thisform.CalcEdit1
	.MultiLine = .T.
	.InsertText("100")
	.InsertText("200")
	.InsertText("300")
	.InsertText("Total")
endwith
14
How do I insert / add a new line

with thisform.CalcEdit1
	.MultiLine = .T.
	.Text = "100 * 1.5"
	.InsertText("120 * 2.5\r\n",1)
	.InsertText("200 * 1.5")
endwith
13
How do I find out if a specified line is valid

*** SelChange event - Occurs when the user selects text in the control. ***
LPARAMETERS nop
	with thisform.CalcEdit1
		DEBUGOUT( "CurrentLine: " )
		DEBUGOUT( .CaretLine )
		DEBUGOUT( "CurrentLine: " )
		DEBUGOUT( .TextLine(.CaretLine) )
		DEBUGOUT( "IsValid: " )
		DEBUGOUT( .IsValid(.CaretLine) )
	endwith

with thisform.CalcEdit1
	.MultiLine = .T.
	.Text = "100 * 1.5"
	.InsertText("invalid")
	.InsertText("120 * 1.5")
	.InsertText("130 * 1.5")
endwith
12
How do I get the current line

*** SelChange event - Occurs when the user selects text in the control. ***
LPARAMETERS nop
	with thisform.CalcEdit1
		DEBUGOUT( "CurrentLine: " )
		DEBUGOUT( .CaretLine )
		DEBUGOUT( "CurrentLine: " )
		DEBUGOUT( .TextLine(.CaretLine) )
		DEBUGOUT( "CurrentResult: " )
		DEBUGOUT( .Result(.CaretLine) )
	endwith

with thisform.CalcEdit1
	.MultiLine = .T.
	.Text = "100 * 1.5"
	.InsertText("120 * 1.5")
	.InsertText("130 * 1.5")
endwith
11
How do I get the line one by one, including the result

with thisform.CalcEdit1
	.MultiLine = .T.
	.Text = "100 * 1.5"
	.InsertText("120 * 1.5")
	.InsertText("130 * 1.5")
	DEBUGOUT( "Lines:" )
	DEBUGOUT( .Count )
	DEBUGOUT( "TextLine(1):" )
	DEBUGOUT( .TextLine(1) )
	DEBUGOUT( "Result(1)" )
	DEBUGOUT( .Result(1) )
	DEBUGOUT( "TextLine(2):" )
	DEBUGOUT( .TextLine(2) )
	DEBUGOUT( "Result(2)" )
	DEBUGOUT( .Result(2) )
	DEBUGOUT( "TextLine(3):" )
	DEBUGOUT( .TextLine(3) )
	DEBUGOUT( "Result(3)" )
	DEBUGOUT( .Result(3) )
endwith
10
Does the control supports multiple lines

with thisform.CalcEdit1
	.MultiLine = .T.
	.Text = "100 * 1.5"
	.InsertText("120 * 1.5")
	.InsertText("130 * 1.5")
endwith
9
Is it possible to display the result without brakets

with thisform.CalcEdit1
	.FormatResult = "<fgcolor=808080> = %%</fgcolor>"
	.Text = "12 + (12 / 100)/2"
endwith
8
How can I display the result on the right side of the control

with thisform.CalcEdit1
	.FormatResult = "<r> <fgcolor=808080>[=%%]</fgcolor>"
	.Text = "12 + (12 / 100)/2"
endwith
7
Can you please advise how to change fontname and size (sample 2)

with thisform.CalcEdit1
	.Template = "Font.Size = 20; Font.Name = `Tahoma`; Refresh"
	.Text = "1/2"
endwith
6
Can you please advise how to change fontname and size (sample 1)

with thisform.CalcEdit1
	.Font.Size = 20
	.Text = "1/2"
	.Refresh
endwith
5
How can I disable evaluating the selection

with thisform.CalcEdit1
	.EvaluateSel = .F.
	.HideSelection = .F.
	.Text = "(1+6.25)/4*6/3"
	.SelStart = 1
	.SelLength = 6
	.SelBackColor = RGB(0,0,0)
endwith
4
Can I define a different decimal separator

with thisform.CalcEdit1
	.AddDecimalSep = ","
	.Text = "(1+6,25)/4*6/3"
endwith
3
How do I change the color of the entire control, if the expression is not valid

*** Change event - Indicates that the control's text has changed. ***
LPARAMETERS nop
	with thisform.CalcEdit1
		DEBUGOUT( "Valid:" )
		DEBUGOUT( .IsValid() )
		.ForeColor = RGB(255,0,0)
		.FormatNumbers = "<fgcolor FF0000>"
		.FormatResult = ""
	endwith

with thisform.CalcEdit1
	.FormatInvalid = ""
	.Text = "invalid(1+6.25)/4*6/3"
endwith
2
Is there any function to know if the expression is valid

*** Change event - Indicates that the control's text has changed. ***
LPARAMETERS nop
	with thisform.CalcEdit1
		DEBUGOUT( "Valid:" )
		DEBUGOUT( .IsValid() )
		DEBUGOUT( "Expression: " )
		DEBUGOUT( .Text )
		DEBUGOUT( "Result: " )
		DEBUGOUT( .Result() )
	endwith

with thisform.CalcEdit1
	.Text = "(1+6.25)/4*6/3"
endwith
1
How do I programatically save / load the expression and the result

with thisform.CalcEdit1
	.Text = "(1+6.25)/4*6/3"
	DEBUGOUT( "Expression: " )
	DEBUGOUT( .Text )
	DEBUGOUT( "Result: " )
	DEBUGOUT( .Result() )
endwith