Results 1 to 10 of 35

Thread: O2 - some basic questions

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    thinBasic MVPs
    Join Date
    Oct 2012
    Location
    Germany
    Age
    55
    Posts
    1,554
    Rep Power
    174

    Oxygen - some basic questions

    A couple of questions, hopefully someone has an answer to one or another.

    I think it's possible to run a few different O2-scripts from within one tB-script - at least I hope so. All examples I've studied use only one script once.

    So the first question would be: Is there any limit?

    When do I have to terminate an O2-script?

    And I want to know if it's possible to pass the source-string "src" also as a pointer from tB. Instead
    O2_Basic src
    
    it would be great if it were possible to pass the pointer of - for example some dictionary-bucket so I could 'feed' O2 just by passing some dictionary-keyname alike this:
    O2_BasicAt StrPtr(src)
    '...
    O2_BasicAt Peek(Dword, Dictionary_Exists(my02DrawingDict, "mandelbrot"))
    O2_BasicAt Peek(Dword, Dictionary_Exists(my02DrawingDict, "pyramids"))
    
    O2_BasicAt Peek(Dword, Dictionary_Exists(my02CollisionDict, "face2face"))
    O2_BasicAt Peek(Dword, Dictionary_Exists(my02CollisionDict, "face2point"))
    '...
    O2_BasicAt myStrPtr ' whereever - as long as valid stringpointer
    ' over the top:
    O2_BasicAt myPtr, SizeInBytes ' so could use Heap or any other memory to store different scripts
    
    is there such method? Only clue I have is thinBasic_keywords.ini which lists:
    O2_ASM
    O2_ASMO
    O2_ASMO_FILE
    O2_ASM_FILE
    O2_BASIC *
    O2_BUF
    O2_ERROR
    O2_EVAL *
    O2_EXEC
    O2_GET
    O2_LEN
    O2_LINK
    O2_PREP *
    O2_PUT
    O2_VIEW
    O2_VIEW_FILE
    OXYGEN_EVAL - suppose, has been replaced with O2_Eval ?
    * = no documentation found

    ...or would it be better to have all those example functions in the code above (drawing, collision) in one big O2-script that stays permanently "alive" as long as my tB-script runs?
    Last edited by ReneMiner; 21-07-2013 at 13:20.
    I think there are missing some Forum-sections as beta-testing and support

Similar Threads

  1. Replies: 0
    Last Post: 14-07-2013, 17:27
  2. Questions About Focus
    By gungadout in forum thinBasic General
    Replies: 2
    Last Post: 12-11-2010, 03:44
  3. three questions
    By christianssen in forum thinBasic General
    Replies: 6
    Last Post: 10-03-2010, 11:12
  4. A few more questions..
    By oldpapa49 in forum thinBasic General
    Replies: 12
    Last Post: 21-03-2009, 21:45
  5. DT questions
    By Dave in forum DT (Date module)
    Replies: 9
    Last Post: 16-04-2008, 09:48

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •