[REBOL] Re: foreach with block question

2001-10-13 Thread Andrew Martin
Jeff's neat solution: > foreach :row data [print bind row 'a] but if your 'foreach block doesn't want to know what's in 'row, then: >> foreach :row data [print bind row first row] 3 DDD VVV 2 1 3 DDD VVV 2 1 3 DDD VVV 2 1 Andrew Martin ICQ: 26227169 http://valley.150m.com/ -><- -- To unsu

[REBOL] Re: dir to a text file

2001-10-13 Thread mechtn
Hey guys i finally came up with my very own first script.. its bits and peices from other code but i got it working.. it makes all the files in a dir lowercase and then writes all their names to a txt file. Next i've got to somehow read that textfile for file names and include them as attachments

[REBOL] dir to a text file

2001-10-13 Thread mechtn
Can anyone tell me how i could dir and save it in a text file with ONLY the file names in that directory on seperate lines.. Or tell me if its possible and what i'd need to use.. Thanks! Koie Smith -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with "unsubscrib

[REBOL] Gomoku Rugby P2P version

2001-10-13 Thread Graham Chiu
This is now working mainly ... sites/compkarori/GoRim2 You can challenge an opponent by selecting their name with the mouse. Once a game has finished, you can rechallenge using the menu on the board. As I can't figure out yet how to dynamically resize the board, you select what cell size you

[REBOL] text-list/text

2001-10-13 Thread Daniel Ajoy
Why can't I change the value of a text-list with fileList/data: ... or fileList/text: ... in this code? Is there any other way? REBOL [Title: "File Selector and Directory Navigator"] view layout [ vh2 "File List:" fileList: text-list data sort read %. [ either

[REBOL] Re: Same block, different formats

2001-10-13 Thread Joel Neely
Hi, Donald, Donald Dalley wrote: > > I have REBOL read a directory, to get a block of file names. I want > to make two different uses of that file list. > ... > > When the block is written to a file and that file is read with a > text reader or editor, though, the names are one long, continuou

[REBOL] Re: Same block, different formats

2001-10-13 Thread Carl Read
On 14-Oct-01, Donald Dalley wrote: > Hi: > I have REBOL read a directory, to get a block of file names. I want > to make two different uses of that file list. > When the block is printed to the console, the list of names is > separated by a space. The rest of the script interprets the block of

[REBOL] Same block, different formats

2001-10-13 Thread Donald Dalley
Hi: I have REBOL read a directory, to get a block of file names. I want to make two different uses of that file list. When the block is printed to the console, the list of names is separated by a space. The rest of the script interprets the block of names, in memory, as having separate elements

[REBOL] Local database engine

2001-10-13 Thread Sanyi
Is there a local database engine in Rebol where I could store data pulled from Oracle MSSQL etc. Anybody implemented a data manipulation solution under Rebol? TIA Sanyi -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with "unsubscribe" in the subject, without the q

[REBOL] Re: (for Carl :-) Re: Re: SHEEP vs Rebol

2001-10-13 Thread Carl Read
On 14-Oct-01, Gregg Irwin wrote: > Hi Pekr, > << Imagine Sheep tree example, interpreted in Rebol,it would be > probably XX times slower ...>> > I converted the script (appending line points to an images draw > effect, refreshing the screen only when done, not worrying about how > to optimize th

[REBOL] Re: foreach with block question

2001-10-13 Thread Jeff Kreis
Howdy, Miquel: > >> data: [ > 1 AAA BBB 3 0 > 2 MMM XXX 1 1 > 3 DDD VVV 2 1 > ] . . . > but if I want generalize the foreach expression... > > >> row: [ a b c d e ] > == [a b c d e] > >> foreach row data [ print row ] ...produces one item per line. Try: foreach :row data

[REBOL] resizing windows

2001-10-13 Thread Graham Chiu
I'm looking for a simple example of two layouts, that can resize independently of the other. In other words, I get a resize event, I want to be able to distinguish which layout the event came from and just resize that one. Also, how can one determine whether q layout is visible, or has been unv

[REBOL] Re: SHEEP vs Rebol

2001-10-13 Thread Don Cox
On 12-Oct-01, Carl Sassenrath wrote: > They would be better off using REBOL, but perhaps they don't want > their scripts to run and exchange data across 40+ platforms > > -Carl Rebol View works on the Amiga (admittedly slowly) but AmigaDE doesn't. Nor does it work on Mac. Something wrong

[REBOL] Re: foreach with block question

2001-10-13 Thread Joel Neely
Hi, Miquel, Miquel Gaya wrote: > > but if I want generalize the foreach expression... > > >> row: [ a b c d e ] > == [a b c d e] > >> foreach row data [ print row ] > 1 > AAA > BBB ... > DDD > VVV > 2 > 1 > >> > > row is considered a word, not a block. > How can I use foreach with a block ? >

[REBOL] Re: (for Carl :-) Re: Re: SHEEP vs Rebol

2001-10-13 Thread Gregg Irwin
Hi Pekr, << Imagine Sheep tree example, interpreted in Rebol,it would be probably XX times slower ...>> I converted the script (appending line points to an images draw effect, refreshing the screen only when done, not worrying about how to optimize the REBOL code), and here's what I got on my P9

[REBOL] Re: (for Carl :-) Re: Re: SHEEP vs Rebol

2001-10-13 Thread Karl Robillard
On Saturday 13 October 2001 00:47, Petr Krenzelok wrote: > - give us Rebol/View running under Elate, and you are suddenly targetting > all Tao based electronic devices. > - give View some suggested fixes (alpha, fixed timers, exposed effect > pipeline or some general engines) > - or even - make so

[REBOL] Re: foreach with block question

2001-10-13 Thread Andrew Martin
Miquel Gaya asked: > How can I use foreach with a block ? >> do compose/deep [foreach [(row)] data [print [(row)]]] 1 AAA BBB 3 0 2 MMM XXX 1 1 3 DDD VVV 2 1 Andrew Martin ICQ: 26227169 http://valley.150m.com/ -><- -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] w

[REBOL] foreach with block question

2001-10-13 Thread Miquel Gaya
foreach can be used with a block of words. for example: >> data: [ 1 AAA BBB 3 0 [2 MMM XXX 1 1 [3 DDD VVV 2 1 ] == [1 AAA BBB 3 0 2 MMM XXX 1 1 3 DDD VVV 2 1] >> foreach [ a b c d e ] data [ print [ a b c d e ]] 1 AAA BBB 3 0 2 MMM XXX 1 1 3 DDD VVV 2 1 but if I want generalize

[REBOL] Re: Email Attachments

2001-10-13 Thread mechtn
i think i got a long way to go before i learn all that! But it gives me somewhere to get started! thanks Phil! koie smith - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, October 13, 2001 7:00 AM Subject: [REBOL] Re: Email Attachments > Hi Koie, >

[REBOL] Rugby and Rebol/IOS

2001-10-13 Thread Sanyi
Where do you position Rugby compared to the upcoming Rebol/IOS ? Will Rugby have overlaping features/functionality or it will be a nice add-on? TIA Sanyi -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with "unsubscribe" in the subject, without the quotes.

[REBOL] Re: Question about date? function

2001-10-13 Thread Joel Neely
Hi, Brock, Brock & Janet wrote: > > Carl, > Thanks. I see how this works. I guess the date? function isn't > really processing the date and is just reporting back validity > for the datatype query... > Carl's already done a great job with the original question, so I'm just gilding the lilly.

[REBOL] Re: SHEEP vs Rebol

2001-10-13 Thread Kolbjørn Barmen
On Fri, 12 Oct 2001, Carl Sassenrath wrote: > They would be better off using REBOL, but perhaps they don't want their > scripts to run and exchange data across 40+ platforms What? A REBOL/OEM? Demo version with all sorts of pieces cut out because "most users dont need it"? Woutter has pro

[REBOL] Re: Email Attachments

2001-10-13 Thread philb
Hi Koie, Well the attachments are sent to attach.r as a block, so just create a block of the files you wish to attach. To create a list of files in a directory just do a read on it. For each of those file names join the directory name and add to block of files to pass to attach.r. To count the

[REBOL] Re: Backwards Navigation on path

2001-10-13 Thread Romano Paolo Tenca
Hi Ammon, > Because we are looking to get the 'b in 'a not in 'd. ;) Exactly what my code do. Check it. > Thanks!! > Ammon --- Ciao Romano -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with "unsubscribe" in the subject, without the quotes.

[REBOL] Re: Update

2001-10-13 Thread Paul Tretter
Perfect Ammon. Thanks. Paul Tretter - Original Message - From: "Ammon Cooke" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, October 12, 2001 6:56 PM Subject: [REBOL] Re: Update > You mean dynamically changing the text while the window is open? > > view layout [ > q: a

[REBOL] john c. dvorak's collumn ...

2001-10-13 Thread Petr Krenzelok
Hi, today I read John C. Dvorak's collumn in Czech edition of PC Magazine, and was impressed by his Rugby suggestion. I just jealeously read the paragraph and imagined Rebol instead of Rubgy ... IIRC, Tom Chang from Rebol Consulting mentioned some activities in Rebol promotion area, including po

[REBOL] Re: Question about date? function

2001-10-13 Thread Brock & Janet
Carl, Thanks. I see how this works. I guess the date? function isn't really processing the date and is just reporting back validity for the datatype query. You are correct about the date I am retrieving - it is coming in as a string from an ASK statement to start with and I could use try as ind

[REBOL] Re: Fun with blocks of words (a tad longish)

2001-10-13 Thread Ladislav Mecir
Hi Gabriele, you have got the right to see it like that. The biggest problem with it is, that it isn't useful for decribing BLOCK1 and BLOCK2 below: element: copy [] block1: reduce [element element] block2: reduce [element copy element] I would prefer to say, that: "BLOCK1 contains

[REBOL] (for Carl :-) Re: Re: SHEEP vs Rebol

2001-10-13 Thread Petr Krenzelok
- Original Message - From: "Carl Sassenrath" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, October 13, 2001 12:33 AM Subject: [REBOL] Re: SHEEP vs Rebol > They would be better off using REBOL, but perhaps they don't want their scripts to run and exchange data across 40+ pla

[REBOL] Re: Question about date? function

2001-10-13 Thread Carl Read
On 13-Oct-01, Brock & Janet wrote: > Should the date? function return false if an invalid date is > entered? > For example, when entering (-MM-DD); >>> date? 2001-12-25 > == true > So you would think that a False would be returned if a date was > incorrect, however, unexpectedly; >>> date?