Arrays in sort/select processing

Mike Schwartz (PC Support) mschw at athenet.net
Sun Dec 10 20:26:04 PST 2006


     Is that period before the g a typo that is in your code?  It should be
a comma...

Then:   y=y(3,.0.g) + "1"

     That's all I see in a quick glance at your code.  I'm fairly sure you
can DIM an array in sort/selection processing and that there's nothing
different about using them there, as opposed to any other kind of
processing.

Mike Schwartz

> -----Original Message-----
> From: filepro-list-bounces+mschw=athenet.net at lists.celestial.com
> [mailto:filepro-list-bounces+mschw=athenet.net at lists.celestial.com] On
> Behalf Of Rodgers Hemer
> Sent: Sunday, December 10, 2006 10:10 PM
> To: filepro-list at lists.celestial.com
> Subject: Arrays in sort/select processing
> 
> Is it possible to use arrays (DIM) in sort/select processing as a
> part of the -v process table?
> 
> If so, can anyone tell me why the following process fails at the
> indicated point?  I have not been successful in getting debug to give
> me any clues.
> 
> The purpose of the process is to input a variable number of existing
> box numbers of 1 to 5 digits each as a selection set for production
> of box labels.  Normal input error checking has been deleted for
> brevity in this posting.
> 
>             	  If:    x eq ""
> 	   Then:   gosub setup
>              	  If:
> 	   Then:   y=y(3,.0.g) + "1"
>             	   If:   y gt n
> 	    Then:   end
> 		   If:    2 eq box[y]		<===== Failure point at left
> bracket when
> dcabe checks the syntax
> 	    Then:   select
> 	    	   If:
> 	    Then:   end
> setup  	   If:
>              Then: dim box[100]:aa
> nxtbox 	   If:
>              Then:   input popup k(5) "Enter box number: "
> 		   If:
> 	    Then:   n=n+"1"; box[n] = k
> 		   If:   n eq "100" or k=""
> 	    Then:   x(1,,g)="b", return
> 		   If:
> 	    Then:   goto nxtbox
> 
> Thanks for the assistance.
> 
> Rodgers Hemer
> 
> 
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> http://mailman.celestial.com/mailman/listinfo/filepro-list




More information about the Filepro-list mailing list