·Î±×ÀÎ
|
ȸ¿ø°¡ÀÔ
|
ȸ»ç¼Ò°³
|
»çÀÌÆ®¸Ê
Ä¿¹Â´ÏƼ | ¼ö½ÄÀÛ¼º Q&A
ÀÛ¼ºÀÚ :
¿¹½º½ºÅ¹
ÀÛ¼ºÀÏ : 2025-06-11 ¿ÀÈÄ 4:37:46 Á¶È¸¼ö : 12
Re : Áú¹® ºÎʵ右´Ï´Ù
¾È³çÇϼ¼¿ä
¿¹½º½ºÅ¹ÀÔ´Ï´Ù.
1
if Bdate != Bdate[1] Then
Condition3 = False;
count = 0;
for cnt = 0 to 20
{
if h > aa[cnt] Then
count = count+1;
}
if condition3==False and countif(count == 21,50)>1 Then
{
condition3=true;
find(1)
}
2
1¹ø´äº¯ Âü°íÇϽñ⠹ٶø´Ï´Ù.
3
¹®ÀÚÇüÀ¸·Î ¼±¾ðÇÏ°í »ç¿ëÇÏ¼Å¾ß ÇÕ´Ï´Ù.
var : nl("");
nl = NewLine;
4
text_setstringÀº ÁöÁ¤ÇÑ ¾ÆÀ̵ðÀÇ ÅØ½ºÆ®¸¦ º¯°æÇÒ ¶§ »ç¿ëÇÕ´Ï´Ù.
ÀϺθ¸ º¯°æÇÒ ¼ö ¾ø½À´Ï´Ù.
Áñ°Å¿î ÇÏ·çµÇ¼¼¿ä
> yamu ´ÔÀÌ ¾´ ±ÛÀÔ´Ï´Ù.
> Á¦¸ñ : Áú¹® ºÎʵ右´Ï´Ù
> ¼ö°íÇϽʴϴÙ
Áú¹® ¸î °¡Áö ºÎʵ右´Ï´Ù
Áú¹®1)
if Bdate != Bdate[1] Then
Condition3 = False;
if condition3==False and countif(h>aa[0] and h>aa[1]...and h>aa[20],50)>1 Then
{
condition3=true;
find(1)
}
À§ÀÇ ½Ä¿¡¼ h>aa[0] and h>aa[1]...and h>aa[20] ó·³ ±æ¾îÁú¶§ ¹Ýº¹¹®À¸·Î °Ë»ö½ÄÀ» ¸¸µé¼ö ÀÖÀ»±î¿ä
Áú¹®2)
if (h>l*1.08) then
{
...
condition1=false;
if countif(h>aa[0] and h>aa[1]...and h>aa[20],50)>1 Then condition1=true;
}
countif(h>aa[0] and ...h>aa[20],50)>1 À» condition1 ¿¡ Æ÷ÇÔ½Ã۰íÀÚ Çϴµ¥
¹Ýº¹¹®À¸·Î ¸¸µé°í ½Í½À´Ï´Ù
Áú¹®3)
ÅØ½ºÆ® °ü·Ã Áú¹®Àä
newline À» º¯¼öÈ ÇÏ·Á°í Çϴµ¥¿ä
¿¹¸¦µé¾î
nl=newline;
txt1[0]=text_new(sd[0],st[0],aa[0],nl+NumToStr(h,0)+nl+NumToStr(h,0)+nl+NumToStr(l,0)));
ÀÌ·¸°Ô Ç¥ÇöÇϰíÀÚ Çϴµ¥ ¿¬»êÀÚ ¾ÕµÚ µÎ µ¥ÀÌÅÍÀÇ ÇüŰ¡ °°¾Æ¾ß ÇÕ´Ï´Ù ¶ó´Â ¿¡·¯°¡ ³ª¿À³×¿ä. newline Àº º¯¼ö¿¡ ´ëÀÔÀÌ ¾ÈµÇ³ª¿ä?
±×¸®°í
text_setstring ¿¡¼¿ä
For cnt = 49 DownTo 1
{
aa[cnt] = aa[cnt-1];
sd[cnt] =sd[cnt-1];st[cnt] =st[cnt-1];
txt1[cnt]=txt1[cnt-1];
Text_SetString(txt1[cnt],newline+NumToStr(cnt,0));
}
aa[0] = value1;
sd[0] = sDate;
st[0] = sTime;
txt1[0]=text_new(sd[0],st[0],aa[0],newline+NumToStr(aa[cnt],0)
+newline+NumToStr(sd[cnt],0)+newline+
NumToStr(cnt,0));
text_setstring() ¾È¿¡ txt1 ÀÇ ³»¿ë Àüü°¡ µé¾î°¡¾ß ¸ðµç Á¶°Ç¸¸Á·ºÀ¿¡¼
ÅØ½ºÆ®°¡ ³ªÅ¸³ª±â¿¡, (À§ ½Äó·³ ÇÏ¸é °¡Àå ÃÖ±ÙºÀ¿¡¸¸ Ç¥½ÃµÊ)
txt1 ³»¿ëÀÌ ¹Ù²ð¶§¸¶´Ù ¸Å¹ø setstring ³»¿ëµµ °°ÀÌ º¯°æÀ» ÇØÁà¾ßÇϴµ¥¿ä
Ȥ½Ã
var1=newline+NumToStr(aa[cnt],0)+newline+NumToStr(sd[cnt],0)+newline+NumToStr(cnt,0);
for cnt=49 downto 1
{
txt1[cnt]=txt1[cnt-1];
Text_SetString(txt1[cnt],var1);
}
txt1[0]=text_new(sd[0],st[0],aa[0],var1);
ÀÌ·± È帧À¸·Î ÅØ½ºÆ® ÇÔ¼ö ³»¿ëÀÇ ÀϺθ¦ º¯¼öÈ ½Ãų ¼öÀÖÀ»±î¿ä?
ÀÏ¹Ý º¯¼ö°¡ ¾ÈµÈ´Ù¸é ³í¸®Çü º¯¼ö·Î ÇÒ ¼ö ÀÖÀ»±î¿ä?
°¨»çÇÕ´Ï´Ù
¹®Àǵ帳´Ï´Ù.
¼ö½Ä ºÎʵ右´Ï´Ù
°ü·Ã ±Û ¸®½ºÆ®
93105
Áú¹® ºÎʵ右´Ï´Ù
yamu
2025.06.11
15
ÇöÀç±Û
Re : Áú¹® ºÎʵ右´Ï´Ù
¿¹½º½ºÅ¹
2025.06.11
12