Tip of the day!

Bob Stockler bob at trebor.iglou.com
Thu Nov 29 14:20:24 PST 2007


I don't know where it's documented, but it >must< be somewhere,
because I dimension all of my arrays at the top of my tables.

The rule being:

  An array must be dimensioned before any of its elements
  are addressed in any way.

Bob

fp at casabellagallery.com wrote (on Thu, Nov 29, 2007 at 02:39:30PM -0700):

| Did you know that if you associate dummy variables to an array
| and try to reference these variables prior to having declared (in
| a line above the line where the array is defined) the array you
| will get a syntax error?  Now you do!
| 
| ****** NOT GOOD *******
| then: ya(10,.2)=xa+xb+xc
| then: dim xabc(3)(10,.2):xa
| 
| ****** GOOD *******
| then: dim xabc(3)(10,.2):xa
| then: ya(10,.2)=xa+xb+xc
| 
| Not a big deal but a shocker if you are not aware of this or
| if your mind has wondered off to wonder-land  :)
| 
| So there, stop blaming filePro for these errors and make sure your
| arrays are defined prior to referencing their respective associated
| variable.
| 
| Regards,
| 
| 
| ---
| Jose Lerebours
| 954  559  7186
| http://www.fpgroups.com
| 
| _______________________________________________
| Filepro-list mailing list
| Filepro-list at lists.celestial.com
| http://mailman.celestial.com/mailman/listinfo/filepro-list

-- 
Bob Stockler +-+ bob at trebor.iglou.com +-+ http://members.iglou.com/trebor


More information about the Filepro-list mailing list