Being an old Basicer, I am new to MC. So far, so good - actually amazing!!!
I usually frantically wave my arms when something doesn't work and stand up and walk 
away when something does 
work. However... over a 4 day period (6+ hours) I have tried, I believe, every 
combination of code I can think of, BUT... 
this thing below STOPS  executing as soon as the "clone" command executes. Note I 
first tried "create" (does the 
same). I live in fear of some disgustingly simple mistake (always the worst kind). Can 
anyone provide some clues to the 
source of this problem?


on makePictures
  #REM openfile with image names and make cards for each file name
  put 0 into increment
  put empty into picture
  
  open file "volume2001_1images.txt" for read       #REM open list of images file
  repeat until eof
    read from file "volume2001_1images.txt" until return   # REM get image file name
    
    
    add 1 to increment    # increment counter add next element to array
    put char 1 to 6 of it into picture[increment]       # Put 6 letters of image file 
name into array
    
    if picture[increment] is not empty then
      clone image "postcard"                   #clone an existing card
      
      #### NG  create  invisible image picture[increment]  # Make a new image card and 
NAME it 6 letters of file name
      
      wait 3 seconds   # shows it exec quits before next line of code
      put it into field id 1021                            # TESTER

      set the name of image "postcard" to picture[increment]
      set the effective fileName of image picture[increment] to picture[increment] & 
".gif" # Put file name into image card
    end if   
    
    
    if picture[increment] is empty then exit repeat
    
  end repeat
  close file "volume2001_1images.txt"
  
end makePictures

One last knotty problem. The last card in my stack is ID 1031. Each "clone or create" 
takes the next ID. I delete each 
new card that is "cloned/created" but the ID number keeps growing -- I am now nearing 
ID 1500 and cannot find a way 
to reset? start again at ID 1032...??? Does it matter? Can IDs go up to 999,999,999?

Thanking you in advance... Lawrence Adams



Archives: http://www.mail-archive.com/[email protected]/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.

Reply via email to