Get from File

Michael D. dweeble at wi.rr.com
Tue Dec 27 20:39:29 EST 2005


Jim,
Thank you the help.

----- Original Message ----- 
From: "Jim Ault" <JimAultWins at yahoo.com>
To: "How to use Revolution" <use-revolution at lists.runrev.com>
Sent: Tuesday, December 27, 2005 1:52 AM
Subject: Re: Get from File


> This works for me...
> I used a quick stack with fld 1 and fld 2 and 1 button
> ------- copy from here
> on getChunk
>   put fld 1 into  sorce
>   put "(?si)("&quote&"edit-1.*edit-5.....)" into regExStr
>   put matchchunk(sorce,regExStr, charPos1,charPos2) into success
>   if success is true then
>     put char charPos1 to charPos2 of sorce into dest
>   else
>     answer "did not find the edit string you were looking for"
>     exit to top
>     end if
>   answer "your gift is behind door number 2"
>   put dest into fld 2
>   breakpoint
> end getChunk
> ------------end copy
>
>
> On 12/26/05 10:31 PM, "Michael D." <dweeble at wi.rr.com> wrote:
>
> > Greetings,
> > I'm stuck on something here and looking for some advice with pulling
this
> > section from a text file(*.hta). Its search the complete file around 800
lines
> > for just this section then
> > put this section into line numbered field ? then
> > put each "edit" of selected line into a field.
> >
> > StartArray = Array( _
> > --- get from here
> >           "edit-1", "edit-2", "edit-3", "edit-4", "edit-5", _
> >           "edit-1", "edit-2", "edit-3", "edit-4", "edit-5", _
> >           "edit-1", "edit-2", "edit-3", "edit-4", "edit-5", _
> >           "edit-1", "edit-2", "edit-3", "edit-4", "edit-5", _
> >           "edit-1", "edit-2", "edit-3", "edit-4", "edit-5", _
> > --- to end of here
> >           "endof", "of", "the", "list", "")
> >
> > Any help greatly appreciated
> > Michael
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list