Get from File
Jim Ault
JimAultWins at yahoo.com
Tue Dec 27 02:52:09 EST 2005
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)(""e&"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
More information about the use-livecode
mailing list