modify ATTRIBUTE GET$ to also get the program directory/filename with a$=ATTRIBUTE GET$ "",""

This commit is contained in:
Jim
2015-04-19 09:59:42 -07:00
parent 8fc15deab6
commit 60573e5b1e
4 changed files with 15 additions and 3 deletions

View File

@@ -19,6 +19,7 @@ Value$ = ATTRIBUTE GET$ Name$, Filename$
Get the string value of the attribute Name$ for file Filename$.
Returns "true" or "false" for "Bool" type attributes.
If Name$="", returns a list of attribute names and their types separated by " | ". returns "Unsupported" for types that are not valid for yab.
it name$ and filenbame$ both = "", returns the current program path and filename
Value = ATTRIBUTE GET Name$, Filename$
Get the number value of the attribute Name$ for file Filename$.
@@ -458,6 +459,7 @@ Directory$ = PEEK$("directory")
else
Directory$ = system$("pwd")
endif
see also ATTRIBUTE GET$
TrackerItem$ = PEEK$("refsreceived")
Returns TrackerItem which you used 'open with...' your application on.
Selected$ = POPUPMENU x,y, MenuItems$, View$