예스스탁
예스스탁 답변
2020-07-29 09:25:51
안녕하세요
예스스탁입니다.
var : tx(0);
tx변수를 내부변수 선언에 추가하시고
PlotPaintBar가 있는 if문에 소속되게 내용을 추가히시면 됩니다.
Text_Delete(tx);
tx = Text_New(sdate,stime,H,"▼");
text_setStyle(tx,2,1);
text_setcolor(tx,red);
text_setsize(tx,20);
1
var : year(0);
var : tx(0);
year = int(date/100)-int(date/10000)*100;
if year != year[1] and year == 1 Then
{
PlotPaintBar(o,c,"강조",white);
Text_Delete(tx);
tx = Text_New(sdate,stime,H,"▼");
text_setStyle(tx,2,1);
text_setcolor(tx,red);
text_setsize(tx,20);
}
2
var : month(0);
var : tx(0);
month = int(date/100)-int(date/10000)*100;
if month != month[1] and month == 1 Then
{
PlotPaintBar(o,c,"강조",white);
Text_Delete(tx);
tx = Text_New(sdate,stime,H,"▼");
text_setStyle(tx,2,1);
text_setcolor(tx,red);
text_setsize(tx,20);
}
3
var : tx(0);
if sdate > sdate[1]+30 Then
{
PlotPaintBar(o,c,"강조",white);
Text_Delete(tx);
tx = Text_New(sdate,stime,H,"▼");
text_setStyle(tx,2,1);
text_setcolor(tx,red);
text_setsize(tx,20);
}
4
var : count(0);
var : month(0);
var : tx(0);
month = int(date/100)-int(date/10000)*100;
if month != month[1] and month ==1 Then
{
PlotPaintBar(o,c,"강조",white);
Text_Delete(tx);
tx = Text_New(sdate,stime,H,"▼");
text_setStyle(tx,2,1);
text_setcolor(tx,red);
text_setsize(tx,20);
}
5
var : count(0);
var : month(0);
var : tx(0);
month = int(date/100)-int(date/10000)*100;
if month != month[1] Then
{
Condition1 = true;
count = 0;
}
if Condition1 == true and bdate != bdate[1] and DayOfWeek(bdate) == 1 Then
{
count = count+1;
if count == 1 Then
{
PlotPaintBar(o,c,"강조",CYAN);
Text_Delete(tx);
tx = Text_New(sdate,stime,H,"▼");
text_setStyle(tx,2,1);
text_setcolor(tx,red);
text_setsize(tx,20);
}
}
6
Input : ndate1(--),
ndate2(--),
ndate3(-7),
ndate4(-),
ndate5(-),
ndate6(-),
ndate7(-),
ndate8(-),
ndate9(-),
ndate10(-),
ndate11(-),
ndate12(-),
ndate13(-);
var : tx(0);
if sdate == ndate1 or
sdate == ndate2 or
sdate == ndate3 or
sdate == ndate4 or
sdate == ndate5 or
sdate == ndate6 or
sdate == ndate7 or
sdate == ndate8 or
sdate == ndate9 or
sdate == ndate10 or
sdate == ndate11 or
sdate == ndate12 or
sdate == ndate13 Then
{
PlotPaintBar(o,c,"강조",GREEN);
Text_Delete(tx);
tx = Text_New(sdate,stime,H,"▼");
text_setStyle(tx,2,1);
text_setcolor(tx,red);
text_setsize(tx,20);
}
7
var : tx(0);
if stime ==-00 or
stime == -00 or
stime == --900 or
stime == -00 or
stime == -00 or
stime == -00 or
stime == -00 or
stime == -00 Then
{
PlotPaintBar(o,c,"강조",yellow);
Text_Delete(tx);
tx = Text_New(sdate,stime,H,"▼");
text_setStyle(tx,2,1);
text_setcolor(tx,red);
text_setsize(tx,20);
}
8
var : tx(0);
if stime == 113000 Then
{
PlotPaintBar(o,c,"강조",YELLOW);
Text_Delete(tx);
tx = Text_New(sdate,stime,H,"▼");
text_setStyle(tx,2,1);
text_setcolor(tx,red);
text_setsize(tx,20);
}
즐거운 하루되세요
> 에리카 님이 쓴 글입니다.
> 제목 : 강조
> 주신수식대입
잘나와요
다른식에 대입시
tx에서 에러납니다
______________________________________________________________
만약 월/주/일/분이 다르다면
수식보내요
색있는캔들은 복잡하네요
--------------------------------------------
대입식이 동일하면 좋겠네요
---------------------------------------------
1>
var : year(0);
year = int(date/100)-int(date/10000)*100;
if year != year[1] and year == 1 Then
PlotPaintBar(o,c,"강조",white);
_________________________________________________
2>
var : month(0);
month = int(date/100)-int(date/10000)*100;
if month != month[1] and month == 1 Then
PlotPaintBar(o,c,"강조",WHITE);
_______________________________________________
3>
if sdate > sdate[1]+30 Then
PlotPaintBar(o,c,"강조",WHITE);
-----------------------------------------------
4>var : count(0);
var : month(0);
month = int(date/100)-int(date/10000)*100;
if month != month[1] and month ==1 Then
{
PlotPaintBar(o,c,"강조",WHITE);
}
______________________________________________
5>
var : count(0);
var : month(0);
month = int(date/100)-int(date/10000)*100;
if month != month[1] Then
{
Condition1 = true;
count = 0;
}
if Condition1 == true and bdate != bdate[1] and DayOfWeek(bdate) == 1 Then
{
count = count+1;
if count == 1 Then
PlotPaintBar(o,c,"강조",CYAN);
}
______________________________________________________________________
6>
Input : ndate1(--),
ndate2(--),
ndate3(-7),
ndate4(-),
ndate5(-),
ndate6(-),
ndate7(-),
ndate8(-),
ndate9(-),
ndate10(-),
ndate11(-),
ndate12(-),
ndate13(-);
if sdate == ndate1 or
sdate == ndate2 or
sdate == ndate3 or
sdate == ndate4 or
sdate == ndate5 or
sdate == ndate6 or
sdate == ndate7 or
sdate == ndate8 or
sdate == ndate9 or
sdate == ndate10 or
sdate == ndate11 or
sdate == ndate12 or
sdate == ndate13 Then
PlotPaintBar(o,c,"강조",GREEN);
___________________________________________________________________
7>
if stime ==-00 or
stime == -00 or
stime == --900 or
stime == -00 or
stime == -00 or
stime == -00 or
stime == -00 or
stime == -00 Then
PlotPaintBar(o,c,"강조",yellow);
___________________________________________________________
8>대입식이 다를지 몰라서요
if stime == 113000
Then
PlotPaintBar(o,c,"강조",YELLOW);
_____________________________________________________________