GithubHelp home page GithubHelp logo

Comments (4)

mrleavitt avatar mrleavitt commented on July 21, 2024

The "Note:" paragraph is not so clear. The problem is in the first phrase, "If you have created a shortcut with files in one base directory" I think. Can you say it in different words?

from de-re-basic.

mrleavitt avatar mrleavitt commented on July 21, 2024

Also, in the section Working With Files around p. 63, would it be useful to make some changes consistent with the Base Drive? It now reads:

Working with Files

BASIC! can work with files anywhere on the SD Card. BASIC! does not access the device's Internal Memory.

Could this be changed to:

BASIC! can work with files anywhere on any external storage device, including the SD Card. The SD Card is the default Base Drive, but this can be changed in the Preferences section (see p. 23). BASIC! does not access the device's Internal Memory.

from de-re-basic.

RFO-BASIC avatar RFO-BASIC commented on July 21, 2024

When Launcher Shortcut, p128, is built, a data structure is created. The data structure contains the full file path of the program to run, for example, "/mnt/sdcard/rfo-basic/source/MyApp.bas" This particular path leads to a program on /sdcard/. If that program uses data files the program is assuming that the data files will be in the path formed by the current base drive""/mnt/sdcard/rfo-basic/data/MyData.txt"

If the above short were created with /sdcard/ as the base drive but it executed with /sdcard-ext/ as the base drive, the program executed would be the original program on the sdcard but it would be reading its data files from /sdcar-ext"

This could be confusing to the user. The simple solution is that the executor compares the path from the data structure to the current base drive path. If they are different, an error mesn edsage is created.

You note is close enough to what is true but not quite true. There are devices like the Nexus 7 that do not have any external storage. They emulate a sdcard. A path with built with sdcard will work on these devices but the actual path name is something like /storage/emulated/. The user never really sees the strange path so it best not to even try to explain it. If the user selects the base drive preference his one and only choice will "No external storage."

from de-re-basic.

mrleavitt avatar mrleavitt commented on July 21, 2024

Good. I expanded the text to make it a little clearer.

from de-re-basic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.