public override void Execute ( PftContext context ) { context.Write(RealText); }
public override void Execute ( PftContext context ) { string text = Evaluate(context); context.Write(text); }
public override void Execute ( PftContext context ) { string text = Reference.FormatSingle(context.Globals.Get(Index)); context.Write(text); }
public override void Execute ( PftContext context ) { string format = new string('0', Length); string text = context.Record.Mfn.ToString(format); context.Write(text); }
public override void Execute ( PftContext context ) { string result = context.Evaluate(Arguments); result = result.Trim(); context.Write(result); }
public override void Execute ( PftContext context ) { if (Position > 0) { context.Write(new string(' ', Position)); } }
public override void Execute ( PftContext context ) { string result = ((Group == null) || (Group.GroupItems == null)) ? "0" : Group.GroupItems.Length.ToInvariantString(); context.Write ( result ); }
public override void Execute ( PftContext context ) { string result = Group == null ? "0" : Group.GroupIndex.ToInvariantString(); context.Write ( result ); }
public override void Execute ( PftContext context ) { int desired = Position * 8; int current = context.Output.GetCaretPosition(); int delta = desired - current; if (delta > 0) { context.Write(new string(' ', delta)); } }
public override void Execute ( PftContext context ) { Argument1.Execute(context); int mfn = (int)Argument1.Value; if (mfn > 0) { string format = context.Evaluate(Argument2); string text = context.Client.FormatRecord(format, mfn); context.Write(text); } }
public override void Execute ( PftContext context ) { Argument1.Execute(context); int minLength = 1; if (Argument2 == null) { if (Argument3 == null) { minLength = 16; } } else { Argument2.Execute(context); minLength = (int)Argument2.Value; } bool useE = true; int decimalPoints = 0; if (Argument3 != null) { useE = false; Argument3.Execute(context); decimalPoints = (int)Argument3.Value; } string format = useE ? string.Format("E{0}", minLength) : string.Format("F{0}", decimalPoints); context.Write ( Argument1.Value.ToString ( format, CultureInfo.InvariantCulture ) ); }
public override bool Execute ( PftContext context ) { OnBeforeExecution(context); string format = new string('0', 10); string text = context.Record.Mfn.ToString(format); context.Write ( this, text ); OnAfterExecution(context); return(false); }