Skip to content

Instantly share code, notes, and snippets.

@SyncHack
Created April 23, 2017 11:30
Show Gist options
  • Save SyncHack/fad09d939b1e5fe1ab5be382e2d8ec61 to your computer and use it in GitHub Desktop.
Save SyncHack/fad09d939b1e5fe1ab5be382e2d8ec61 to your computer and use it in GitHub Desktop.
貸借、非貸借表示プログラム(レーダースクリーン専用)
{
貸借、非貸借表示プログラム(レーダースクリーン専用)
v 0.1.0 : 17.04.21
Makoto NARA (Mc.N)
}
vars:
fvalue(0),
errcode(0),
string base_str("error"),
int base_color(Red);
consts:
FUNDNAME("CB_LBTR");
fvalue = FundValue( FUNDNAME, 0, errcode ) ;
if errcode = fdrOk then begin
switch (fvalue) begin
case 1:
base_str = "貸借";
base_color = DarkRed;
case 2:
base_str = "信用";
base_color = DarkBlue;
case 3:
base_str = "その他";
base_color = Red;
default:
base_str = "unknown";
base_color = Red;
end;
end;
Plot1( base_str, "制度", base_color);
{
Copyright (c) 2017, Makoto NARA (Mc.N)
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment