Guidance
指路人
g.yi.org
Guidance Forums / Reginald Rexx

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1.
#13528
Posted by: Aurel 2011-10-14 02:38:27
Hi...
I'm new in Reginald REXX but not in programming.
I can tell that i like Rexx syntax and that Rexx works fine on my XP machine.

So , is anyone here who can explain me why is first block of
code under comment block?
like this:
---------------------------------------------------------------------

/*
GUIBEGIN
WINDOW , 328, 261, 231, 106, POPUP|CAPTION|SYSMENU|MINBOX|MAXBOX|THICK, , TREE demo
	FONT 8, 400, MS Shell Dlg
	TREE 7, 7, 218, 70, LINES|ROOT|BORDER, , MyTree, , MyItems
	PUSH 85, 86, 60, 14, TABSTOP, , Change, , Change Tree
DEND
GUIEND
*/
[code/]
----------------------------------------------------------
i have rexxgui installed and all programs work fine...
i USE of course rexxcenter.
is that maybe because i USE rexxgui or becuse something else...

aurel
AurelBasic
Message2.
#13529
Posted by: Jeff Glatt 2011-10-14 11:29:34
Yes, that comment is needed to create your rexxgui window. Don't manually edit it, or move it. RexxCenter edits it for you.
Message3.
#13530
Posted by: Aurel 2011-10-14 19:57:46
Why manualy don't edit...?
And why is under comment if is used by rexxgui ?
this is little bit weird...?

Do i can use my own editor and run rexx code?
AurelBasic
Message4.
#13531
Posted by: Jeff Glatt 2011-10-15 11:49:07
It's a "special comment" that RexxGui looks for. If you manually edit it, you could mess it up if you don't know what you're doing.

You can use another text editor, but RexxCenter makes it easy.
Message5. I think there might be a misunderstanding here
#13532
Posted by: Michael S 2011-10-15 15:55:58
The default code above assumes your script will be presenting/using a window for some purpose. Assuming that is NOT the case, then your script could look something like this

/* REXX exec CONVERT7
   Converts "YYYYMMDD" into day-of-week.
   This is a Zeller's congruence algorithm submitted by Mike Carroll
   to the bit.listserv.ibm-main group on 5 May 1995.
*/

rc = convert('20110901')
current_date = DATE('S')
current_date = LEFT(current_date,6)||'01'
rc = DATE('N', current_date, 'S')
SAY DATE('W',rc)
EXIT
convert:
ARG yyyy +4 mm +2 dd
IF mm < 3 THEN DO ; wmm = mm + 12
                    wyyyy = yyyy - 1
                    END
          ELSE DO ; wmm = mm
                    wyyyy = yyyy
                    END
dow = (dd + 1 + (wmm * 2) + TRUNC(((wmm + 1) * 3) / 5) ,
      + wyyyy + TRUNC(wyyyy / 4) - TRUNC(wyyyy / 100) ,
      + TRUNC(wyyyy / 400)) // 7
                             /* DOW is 0-6, 0=Sunday, 1=Monday, etc.)
*/
array = 'Sunday Monday Tuesday Wednesday Thursday Friday Saturday'
SAY 'YYYYMMDD' yyyy || mm || dd '=' WORD(array,dow+1)
RETURN 0
Here, I was simply testing a different way of determining the day of the week based on a date. As you can see, no GUI code, since the script isn't using a window.
Message6.
#13533
Posted by: Aurel 2011-10-15 18:11:44
This everything is ok but hey using code under comment block is as GUI include is really weird.
Maby better option will be some sort of macro command or something like that.
#GUIBEGIN
....
....
...
#GUIEND
but not under commented block.
Just observation or suggestion...

By the way is Reginald Rexx open source ?
If is not which version of REXX is opensource and that work on windows.
Which compiler i must use to compile source of rexx to excecutable...
Any help appreciated...!
AurelBasic
Message7. Answers (Jeff can correct me if necessary)
#13534
Posted by: Michael S 2011-10-19 15:27:28 Last edited by: Michael S 2011-10-19 15:27:57 (Total edited 1 time)
By the way is Reginald Rexx open source ? No
If is not which version of REXX is opensource and that work on windows OO Rexx, I believe
Which compiler i must use to compile source of rexx to excecutable Reginald allows you to create EXE/DLL files based on the concept of projects in RPC. I use them all the time at work.
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
¥1,800.00 ·
 
 
¥489.00 ·
 
 
¥288.00 ·
 
 
¥908.00 ·
 
 
¥748.00 ·
 
 
¥264.00 ·
© Sun 2024-11-24  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0