Announcement

Collapse

Maintenance

The forum could be offline for 30-60 minutes in the very near future for maintenance (said 3pm Pacific). I was behind on getting this notice. I do apologize.
See more
See less

PTkey error 481

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • PTkey error 481

    Hello,

    I'm trying to use PTkey of ptreed11. Following example:

    [code removed by Administrator]

    Thanks for help

    Matthias Kuhn

    ------------------

  • #2
    Hi,

    I feel it is like a quizz...

    Dim keyvalue as string ( quit normal)

    keyvalue="00000" ( init for starting )

    works but is it right ?

    Regards

    Matthias Kuhn



    ------------------

    Comment


    • #3
      Please note that under the terms of the PowerTREE license, PowerTREE code may not be posted publically, so the code in your first message was removed. Where possible, please use pseudocode instead. Thanks!

      The PowerTREE enquiry functions are declared to expect BYVAL STRING parameters, so using dynamic strings is by far the easiest way to use the library. However, using BYCOPY with an ASCIIZ will also work fine for all <U>enquiry</U> functions, for example (FindFirst, FindNext, etc):
      Code:
      CALL PowerTREEFunction(BYCOPY keyvalue, ...)
      ...or
      CALL PowerTREEFunction(keyvalue + "", ...)
      ...or
      CALL PowerTREEFunction((keyvalue), ...)
      However, you cannot use these techniques the 'Return Key' function, since it must return a string to the calling code... in this case you must use a proper dynamic string variable.

      If you have further problems that cannot be explained using pseudocode, please contact Tech Support rather than posting the code here.

      Thanks!

      ------------------
      Lance
      PowerBASIC Support
      mailto:[email protected][email protected]</A>
      Lance
      mailto:[email protected]

      Comment

      Working...
      X