10 Replies Latest reply on Feb 26, 2009 4:32 PM by Newsgroup_User

    V12 DB xtra

    Level 7
      Before I call the company, I thought I'd pass this by one of the geniouses
      in this forum.

      I am working on updating a program i didn't develop. It uses the V12 db
      Xtra v1.0.1. It appears that the newest version is 4.1.1. I'm getting an
      error from the second line of code below.

      gDB = new(Xtra "V12DBE", dbPath, "ReadWrite", "")
      gTB1 = new(Xtra "V12Table", mGetRef(gDB), "Table1")

      The first line returns a value of -1211 for gDB (dbPath is a valid and
      accurate path)

      then the next line gives the error "handler not defined" mGetRef.

      Any clues?


        • 1. Re: V12 DB xtra
          Level 7
          > gDB = new(Xtra "V12DBE", dbPath, "ReadWrite", "")
          >
          > The first line returns a value of -1211 for gDB

          I don't use V12, but what do the docs say should be returned from
          creating a new xtra instance? I would expect something like <Xtra child
          "V12DBE" 1 hex_address> so -1211 looks like an error value.
          • 2. Re: V12 DB xtra
            Level 7
            I would agree. I searched for the documents on line but couldn't find
            anything. I have no idea who the original developer was. I believe the
            version of director used was 6 or 7.

            I've told my client he probably needs to purchase the latest version but if
            things changed a lot from Version 1 to the new incarnation of the Xtra, it
            might break the whole program

            What I don't understand is that using the code from the old version of
            Director I get the error but I would think the old Lingo would be compatible
            with the Xtra.

            --
            Craig

            "Sean Wilson" <webforumsuser@macromedia.com> wrote in message
            news:go281q$7r2$1@forums.macromedia.com...
            >> gDB = new(Xtra "V12DBE", dbPath, "ReadWrite", "")
            >>
            >> The first line returns a value of -1211 for gDB
            >
            > I don't use V12, but what do the docs say should be returned from creating
            > a new xtra instance? I would expect something like <Xtra child "V12DBE" 1
            > hex_address> so -1211 looks like an error value.


            • 3. Re: V12 DB xtra
              Level 7
              Is it possible there is a mis-typed #movie script that implements an 'on
              new' handler?
              What if you alter the instance creation to:
              --
              gDB = xtra("V12DBE").new( dbPath, "ReadWrite", "" )
              gTB1 = xtra("V12Table").new( mGetRef(gDB), "Table1" )
              • 4. Re: V12 DB xtra
                Level 7
                I'll give it a try in the morning. Thanks

                --
                Craig S. Wollman

                Word of Mouth Productions
                159-00 Riverside Drive West
                New York, New York 10032
                (212) 928-9581
                "Sean Wilson" <webforumsuser@macromedia.com> wrote in message
                news:go29l7$9n2$1@forums.macromedia.com...
                > Is it possible there is a mis-typed #movie script that implements an 'on
                > new' handler?
                > What if you alter the instance creation to:
                > --
                > gDB = xtra("V12DBE").new( dbPath, "ReadWrite", "" )
                > gTB1 = xtra("V12Table").new( mGetRef(gDB), "Table1" )


                • 5. Re: V12 DB xtra
                  Level 7
                  Sean,

                  It didn't make a difference. It still returns -1211. I went to the IMN
                  website and you can download the manual if you register with them. That
                  might only be for the most recent version . According to their site, the
                  version in the project I"m working on is defunct. But that shouldn't keep
                  it from working.

                  Craig

                  "Sean Wilson" <webforumsuser@macromedia.com> wrote in message
                  news:go29l7$9n2$1@forums.macromedia.com...
                  > Is it possible there is a mis-typed #movie script that implements an 'on
                  > new' handler?
                  > What if you alter the instance creation to:
                  > --
                  > gDB = xtra("V12DBE").new( dbPath, "ReadWrite", "" )
                  > gTB1 = xtra("V12Table").new( mGetRef(gDB), "Table1" )


                  • 6. Re: V12 DB xtra
                    Level 7
                    Sean,

                    I downloaded the trial version of the V12 xtra (version 3) and it didn't
                    work with the original style code but with the dot syntax that you
                    suggested, it worked. But of course that would mean that my client would
                    have to spend another $500 which he doesn't want to do. The original code
                    worked in this program. Do you think that using a much newer version of
                    Director would make the V12 Xtra code invalid?

                    That doesn't make sense to me.

                    --
                    Craig S. Wollman

                    Word of Mouth Productions
                    159-00 Riverside Drive West
                    New York, New York 10032
                    (212) 928-9581
                    "Sean Wilson" <webforumsuser@macromedia.com> wrote in message
                    news:go29l7$9n2$1@forums.macromedia.com...
                    > Is it possible there is a mis-typed #movie script that implements an 'on
                    > new' handler?
                    > What if you alter the instance creation to:
                    > --
                    > gDB = xtra("V12DBE").new( dbPath, "ReadWrite", "" )
                    > gTB1 = xtra("V12Table").new( mGetRef(gDB), "Table1" )


                    • 7. Re: V12 DB xtra
                      Level 7
                      > I downloaded the trial version of the V12 xtra (version 3) and it didn't
                      > work with the original style code but with the dot syntax that you
                      > suggested, it worked.

                      What if you use the style I suggested with the original xtra version -
                      does that make any difference?

                      > Do you think that using a much newer version of
                      > Director would make the V12 Xtra code invalid?

                      Impossible to say. The developers may have dropped methods, added new
                      ones, changed arguments. Not to mention OS and XDK version considerations.
                      • 8. Re: V12 DB xtra
                        Level 7
                        I mentioned that in an earlier response. Either syntax with the old Xtra
                        gives me -1211

                        Dropping methods, adding or changing them isn't relevant here because the
                        code was written back in the mid 90's when the Xtra was at V1.01. So
                        whatever worked in the release version of the CD should still work. I
                        haven't touched that code (except to try your syntax suggestion) That's why
                        it must be an OS issue or possibly a Director issue.



                        --
                        Craig S. Wollman

                        Word of Mouth Productions
                        159-00 Riverside Drive West
                        New York, New York 10032
                        (212) 928-9581
                        "Sean Wilson" <webforumsuser@macromedia.com> wrote in message
                        news:go44n8$kbe$1@forums.macromedia.com...
                        >> I downloaded the trial version of the V12 xtra (version 3) and it didn't
                        >> work with the original style code but with the dot syntax that you
                        >> suggested, it worked.
                        >
                        > What if you use the style I suggested with the original xtra version -
                        > does that make any difference?
                        >
                        >> Do you think that using a much newer version of Director would make the
                        >> V12 Xtra code invalid?
                        >
                        > Impossible to say. The developers may have dropped methods, added new
                        > ones, changed arguments. Not to mention OS and XDK version considerations.


                        • 9. Re: V12 DB xtra
                          Level 7
                          You can use this v12 methods:

                          V12Status() returns a non-zero result if an error ocurrs.

                          V12Error() to get the details of the error.

                          Example:

                          gDB = new(Xtra "V12DBE", dbPath, "ReadWrite", "")
                          errCode = V12Status()

                          if errCode <> 0 then
                          put V12Error(errCode)
                          end if
                          -


                          I have the V12 Xtra ver 2.1 and it doesn't have the -1211 code, this is
                          a part of the list of error codes:

                          ...
                          -1180 Cannot create DBT file. Maybe the file already exists

                          -1250 Field does not exist

                          -1260 Invalid field data. Please contact tech support

                          -1270 Invalid field type

                          -1280 Invalid field size in table

                          -1290 No table defined

                          -1330 Unable to set password

                          ...


                          WOMP escribió:
                          > I mentioned that in an earlier response. Either syntax with the old Xtra
                          > gives me -1211
                          >
                          > Dropping methods, adding or changing them isn't relevant here because the
                          > code was written back in the mid 90's when the Xtra was at V1.01. So
                          > whatever worked in the release version of the CD should still work. I
                          > haven't touched that code (except to try your syntax suggestion) That's why
                          > it must be an OS issue or possibly a Director issue.
                          >
                          >
                          >
                          • 10. Re: V12 DB xtra
                            Level 7
                            V12Status is undefined. It must not have been included in version 1.0.1

                            Craig

                            "chus" <"chusrp["@]gmail.com> wrote in message
                            news:go5hcv$cag$1@forums.macromedia.com...
                            > You can use this v12 methods:
                            >
                            > V12Status() returns a non-zero result if an error ocurrs.
                            >
                            > V12Error() to get the details of the error.
                            >
                            > Example:
                            >
                            > gDB = new(Xtra "V12DBE", dbPath, "ReadWrite", "")
                            > errCode = V12Status()
                            >
                            > if errCode <> 0 then
                            > put V12Error(errCode)
                            > end if
                            > -
                            >
                            >
                            > I have the V12 Xtra ver 2.1 and it doesn't have the -1211 code, this is a
                            > part of the list of error codes:
                            >
                            > ...
                            > -1180 Cannot create DBT file. Maybe the file already exists
                            >
                            > -1250 Field does not exist
                            >
                            > -1260 Invalid field data. Please contact tech support
                            >
                            > -1270 Invalid field type
                            >
                            > -1280 Invalid field size in table
                            >
                            > -1290 No table defined
                            >
                            > -1330 Unable to set password
                            >
                            > ...
                            >
                            >
                            > WOMP escribió:
                            >> I mentioned that in an earlier response. Either syntax with the old Xtra
                            >> gives me -1211
                            >>
                            >> Dropping methods, adding or changing them isn't relevant here because the
                            >> code was written back in the mid 90's when the Xtra was at V1.01. So
                            >> whatever worked in the release version of the CD should still work. I
                            >> haven't touched that code (except to try your syntax suggestion) That's
                            >> why it must be an OS issue or possibly a Director issue.
                            >>
                            >>