GetText with seq() problem
Barry Kahn
barryk at caravanbeads.net
Fri May 23 07:13:51 PDT 2008
Some day I'll remember these details, although in the race between
learning Panorama and losing brain cells, the odds aren't looking so
good.
Thanks Dave--that fixed it, of course.
bk
>> I'd like to take this:
>>
>> seq() ¾ 100
>>
>> which I can use manually in a FormulaFindSelect to limit the
>> length of a list
>>
>> and incorporate it into a GetText dialog so the
>> user can input the number. But not sure how to
>> do it. I imagine it would have a command and
>> then: seq() ¾ howMany
>>
>> but my various attempts all produce errors.
>>
>> So I'm stuck here:
>>
>> local howMany
>> howMany=150"
>>
>> GetText "Choose the top _______ items:",howMany
>
> Make that
>
> local howMany
> howMany="150"
>
> GetText "Choose the top _______ items:",howMany
> howMany = val(howMany)
>
> Then you will be able to use
>
> Select seq() <= howMany
>
> to select the requested number of records.
> Without that val( function, you would have been
> comparing a number to text, and you would have
> gotten a type mismatch.
>
> Dave
> _______________________________________________
> Qna mailing list
> Qna at provue.com
> http://provue.com/mailman/listinfo/qna
Barry Kahn
Caravan Beads, Inc.
915 Forest Ave
Portland ME 04103
800-230-8941
fax: 207-874-2664
www.caravanbeads.net
barryk at caravanbeads.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://provue.com/pipermail/qna/attachments/20080523/ea8faa95/attachment.html
More information about the Qna
mailing list