Search found 56 matches

by gmccarthy
Wed Feb 14, 2018 9:31 pm
Forum: Talking LiveCode
Topic: is a color
Replies: 15
Views: 7787

Re: is a color

hh, could you add something about that to the dictionary?
by gmccarthy
Wed Feb 14, 2018 11:15 am
Forum: Talking LiveCode
Topic: is a color
Replies: 15
Views: 7787

Re: is a color

I was testing to see if I need to do any custom validation for an input field for a color and just added a 0 to the end value, expecting it to be invalid. Who was to know that "is a color" would allow rgb values out of range. Further to that who would know that setting a backcolor to an rgb value th...
by gmccarthy
Wed Feb 14, 2018 2:38 am
Forum: Talking LiveCode
Topic: is a color
Replies: 15
Views: 7787

is a color

It tried testing input for "is a color"
I found "255,255,1000" returns true.
It this expected?
Should rgb colors return true when they have a value that is out of range, such as >255 for in individual value?
by gmccarthy
Fri Feb 09, 2018 12:50 pm
Forum: Internet
Topic: Dropbox OAuth help
Replies: 5
Views: 4501

Re: Dropbox OAuth help

Sorry Klaus, I think I misunderstood your situation. I was thinking of cases using the OAuth 2 access token when files are transferred between a master desktop program and a users client desktop program via a dropbox app. Encryption and decryption of a simple type can be coded into the programs so t...
by gmccarthy
Fri Feb 09, 2018 7:18 am
Forum: Internet
Topic: Dropbox OAuth help
Replies: 5
Views: 4501

Re: Dropbox OAuth help

Use OAuth 2 access token instead of flow.
At https://www.dropbox.com/developers/apps/ click on your app, leave Allow implicit grant set as Allow; then Generate access token to use in your app.
by gmccarthy
Sun Dec 18, 2016 8:57 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Problems printing a field copied from a datagrid [SOLVED]
Replies: 7
Views: 5640

Re: Problems printing a field with grid lines

I submitted a bug report at http://quality.livecode.com/show_bug.cgi?id=19016
v or h grid lines causes the bug.
A table is filled in with black when printed.
Curiously, printing to pdf is normal, although printing to the adobe pdf printer causes the same issue.
by gmccarthy
Sat May 28, 2016 11:28 pm
Forum: Announcements
Topic: Dropbox Livecode Library
Replies: 76
Views: 61768

Re: Dropbox Livecode Library

Also, if there are those who would like to continue my work on my shared stack for dropbox API v2 that would be great for the community.
See: http://livecodeshare.runrev.com/stack/794/DropboxAPI_2
by gmccarthy
Fri Mar 25, 2016 2:30 am
Forum: Internet
Topic: Dropbox Help
Replies: 30
Views: 21171

Re: Dropbox Help

set your itemdel to slash
by gmccarthy
Fri Mar 25, 2016 1:23 am
Forum: Internet
Topic: Dropbox Help
Replies: 30
Views: 21171

Re: Dropbox Help

get the list of files in the folder
use a repeat loop so that for each file, get the last item
and add it to a list of file names
by gmccarthy
Fri Mar 25, 2016 12:51 am
Forum: Internet
Topic: Dropbox Help
Replies: 30
Views: 21171

Re: Dropbox Help

Build a list with a repeat loop on he list of files
eg:
repeat for each line rLine in pText
put fGetlastChunk(pDelim,rLine) & cr after tList
end repeat
by gmccarthy
Thu Mar 24, 2016 11:45 pm
Forum: Internet
Topic: Dropbox Help
Replies: 30
Views: 21171

Re: Dropbox Help

You can do a repeat loop through the paths and collect the last items and just list them.
by gmccarthy
Wed Mar 16, 2016 2:34 am
Forum: Internet
Topic: Dropbox Help
Replies: 30
Views: 21171

Re: Dropbox Help

You need to use:
put fGetDropboxAPI2(tHeader,tPost,tURL)
You need to put hold the various inputs to the function in the variables: tHeader,tPost,tURL
You can put the file name selected into a variable then use that variable to replace the header text in another variable.
by gmccarthy
Tue Mar 15, 2016 9:40 pm
Forum: Internet
Topic: Dropbox Help
Replies: 30
Views: 21171

Re: Dropbox Help

Replace "MyFilename" with the file name.
You can cut the file path as the last "/" in various ways.
eg. set the itemdelimiter to "/" then get item -1 of the file path.
by gmccarthy
Tue Mar 15, 2016 1:46 pm
Forum: Internet
Topic: Dropbox Help
Replies: 30
Views: 21171

Re: Dropbox Help

eg.Header to include: Lets say the file name that you clicked on was testfile1.txt in the dropbox app folder. Authorization: Bearer <<AccessToken>> Content-Type: Dropbox-API-Arg: {"path":"/testfile1.txt"} You might put into a variable the following and just replace MyFilename with the clicked text. ...
by gmccarthy
Tue Mar 15, 2016 12:40 pm
Forum: Internet
Topic: Dropbox Help
Replies: 30
Views: 21171

Re: Dropbox Help

Set the field as a list field: check Autohilite and listbehaviour in the property inspector.
The mousedown handler needs to get the hilitedtext when clicked.
You need to use Files-download from the dropbox library to get the text of the file from dropbox.

Go to advanced search