home *** CD-ROM | disk | FTP | other *** search
- /* A simple plug-in template */
-
- rx = RXFile()
- rHowManyFld = Rexx
- rHowManyRec = Rexx
- rFieldName = Rexx[]
- rFieldValue = Rexx[,]
- iCount = int
-
- rHowManyFld = rx.linein() /* How many fields? */
- rFieldName = Rexx[rHowManyFld + 1]
-
- loop iCount = 1 to rHowManyFld
- rFieldName[iCount] = rx.linein() /* Get field names */
- end
-
- rHowManyRec = rx.linein() /* How many records? */
- rFieldValue = Rexx[rHowManyFld + 1, rHowManyRec + 1]
-
- loop iCount = 1 to rHowManyRec /* Records */
- loop iCount2 = 1 to rHowManyFld
- rFieldValue[iCount2, iCount] = rx.linein()
- end
- end
-
- /*
-
- Now you have:
- in rFieldName[1..rHowManyFld] all the field names.
- in rFieldValue[1..rHowManyFld, 1..rHowManyRec] all the records that the user
- has selected before calling the plugin, field by field and record by record.
-
- From now on you can write your own plug-in..
- Remember to insert it into plugin.ini, or it won't show up in MaxBase!
-
- */
-