new(core.gbapp): GET and SET new keywords for storing values in .gbdialog BASIC.
This commit is contained in:
parent
dec76af1b9
commit
d7b72dbbc3
2 changed files with 5 additions and 2 deletions
|
@ -126,7 +126,7 @@ class SysClass {
|
|||
let body = { values: [[]] };
|
||||
body.values[0][0] = value;
|
||||
|
||||
let res2 = await client
|
||||
await client
|
||||
.api(
|
||||
`https://graph.microsoft.com/v1.0/sites/${siteId}/lists/${libraryId}/drive/items/${document[0].id}/workbook/worksheets('Sheet1')/range(address='${address}')`
|
||||
)
|
||||
|
@ -214,7 +214,7 @@ class SysClass {
|
|||
return m.name === file;
|
||||
});
|
||||
|
||||
if (document === undefined) {
|
||||
if (!document || document.length === 0) {
|
||||
throw `File '${file}' specified on save GBasic command GET not found. Check the .gbdata or the .gbdialog associated.`;
|
||||
}
|
||||
|
||||
|
|
3
packages/default.gbdialog/get-set-excel.vbs
Normal file
3
packages/default.gbdialog/get-set-excel.vbs
Normal file
|
@ -0,0 +1,3 @@
|
|||
value = get "list.xslx", "A1:A1"
|
||||
|
||||
set "list.xslx", "A1:A1", "value"
|
Loading…
Add table
Reference in a new issue