>on saveFormData formData
>  go to last card
>  doMenu "New Card"
>  ----
>  set the itemDelim to "="
>  repeat with x = 1 to the number of lines of formData
>    put item 1 of line x of formData into theField
>    put item 2 of line x of formData into theValue
>    --------------------------------------------------
>    ------------- *** the DO command *** -------------
>    --------------------------------------------------
>    do "put" && theValue && "into field" && theField
>    --------------------------------------------------
>    --------------------------------------------------
>  end repeat
>end saveFormData

Alain,

 you can do without "do" here:

on saveFormData formData
  go to last card
  doMenu "New Card"
  ----
  set the itemDelim to "="
  repeat with x = 1 to the number of lines of formData
    put item 1 of line x of formData into theField
    put item 2 of line x of formData into theValue
    put theValue into field theField
  end repeat
end saveFormData

 is a valid HYPERtalk statement.

Cheers,
-- M. Uli Kusterer

------------------------------------------------------------
             http://www.weblayout.com/witness
       'The Witnesses of TeachText are everywhere...'

--- HELP SAVE HYPERCARD: ---
Details at: http://www.hyperactivesw.com/SaveHC.html
Sign: http://www.giguere.uqam.ca/petition/hcpetition.html

Reply via email to