Modified on 2013/05/11 12:55 by Eugene — Categorized as: Community Components


public static string GetStatusBarText(this WealthScript obj)

public static string GetStatusBarText()

Parameter Description


This function uses the System.Reflection namespace to get Wealth-Lab's status bar text as a string.


Look at this example:

Example using C# extension methods:

using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using WealthLab;

namespace WealthLab.Strategies { public class MyStrategy : WealthScript { protected override void Execute() { string status = this.GetStatusBarText(); //string status = Community.Components.Utility.GetStatusBarText(); if( string.IsNullOrEmpty( status ) ) PrintDebug("Status bar is empty!"); else PrintDebug(status); } } }