Search found 43 matches

by stoavio
Fri Nov 07, 2014 12:12 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: If variable DOES NOT contain
Replies: 7
Views: 6774

Re: If variable DOES NOT contain

Isn't that redundant? Doesn't the "else" work by itself? I know! Weird huh? The else isn't working by itself. I have an tOstFile that IS found in tConfigList and one that isn't. That means I should have 1 tOSTFile being put into lPrimaryAcct and another into lDelegateAcct, but what's happening is t...
by stoavio
Wed Nov 05, 2014 1:49 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: If variable DOES NOT contain
Replies: 7
Views: 6774

If variable DOES NOT contain

Good morning everybody - I'm embarrassed to even ask this one, because it seems so simple, but I have been getting jammed up on it for at least 30 minutes. I have a little piece of code that is checking a list of files for the presense of a string, and if that string is present, then I put it into a...
by stoavio
Wed Nov 05, 2014 12:28 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Check User Privileges / Force Admin
Replies: 5
Views: 4920

Re: Check User Privileges / Force Admin

Thanks all!

Richard, that was just what I needed! :D
by stoavio
Mon Nov 03, 2014 2:24 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Accessing variables in a function OUTSIDE of function
Replies: 7
Views: 6268

Re: Accessing variables in a function OUTSIDE of function

Hi Klaus - Great recommendations, thank you! A couple of questions though. Does "exit to top" stop the execution of a standalone application? What is the difference between that and "quit"? Do you know of any way to "reset" the defaultfolder to its initial value of the working directory when the app...
by stoavio
Mon Nov 03, 2014 12:41 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Check User Privileges / Force Admin
Replies: 5
Views: 4920

Re: Check User Privileges / Force Admin

in the main stack i set two custom properties, "cUserLevel" and "cUserID" which is altered when the user logs on or off. Then i just access that info wherever i need to This sounds interesting. Can you elaborate? I see where you can create the custom properties but what are you supposed to put at t...
by stoavio
Sat Nov 01, 2014 1:42 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Check User Privileges / Force Admin
Replies: 5
Views: 4920

Check User Privileges / Force Admin

Good morning again - Does LiveCode have any built-in functions for looking at the currently logged in user's permissions (ie: is the user a regular user or administrator?) My tool may need elevated privileges to perform certain tasks and I would like to perform an evaluation upfront to determine wha...
by stoavio
Sat Nov 01, 2014 12:38 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Accessing variables in a function OUTSIDE of function
Replies: 7
Views: 6268

Re: Accessing variables in a function OUTSIDE of function

My first question, trying to understand how you are going about things... Did you intentionally comment out the definition of the variables in the mouseUp handler? The code you originally posted would have that result. With the first two lines commented out, LC would try to interpret the variables ...
by stoavio
Sat Nov 01, 2014 12:34 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Accessing variables in a function OUTSIDE of function
Replies: 7
Views: 6268

Re: Accessing variables in a function OUTSIDE of function

Alright, I cleaned it up reconsidered my approach. Now the log function does what I want it to and I can call it from anywhere in the script. It's still a work in progress and but it will help me with troubleshooting and error handling. Speaking of error handling, what tips do you experts have? Any ...
by stoavio
Sat Nov 01, 2014 11:48 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Accessing variables in a function OUTSIDE of function
Replies: 7
Views: 6268

Re: Accessing variables in a function OUTSIDE of function

Hi stoavio, Lots of funky things in the code. Try this; on mouseUp --put the defaultfolder & "\Logs\" into lLogDir --put the long date & ".log" into lLogFile put Logit("HEADER") into temp -- URL ("file:" & lLogDir & lLogFile) breakpoint put item 1 of temp put item 2 of temp put item 3 of temp put t...
by stoavio
Sat Nov 01, 2014 2:33 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Accessing variables in a function OUTSIDE of function
Replies: 7
Views: 6268

Accessing variables in a function OUTSIDE of function

Hi all - I am writing a quick log function and am trying to use some variables (specifically: lLogDir and lLogFile) outside of the function to actually create the file. I wanted the Logit function to not only log entries but also handle creating the directory the log files will reside in. Using put ...
by stoavio
Sat Nov 01, 2014 1:45 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Livecode Special Folder - Backwards Slashes?
Replies: 2
Views: 2878

Re: Livecode Special Folder - Backwards Slashes?

Thank you Klaus! I will continue using backslashes in my paths with this knowledge. :D
by stoavio
Fri Oct 31, 2014 12:24 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Livecode Special Folder - Backwards Slashes?
Replies: 2
Views: 2878

Livecode Special Folder - Backwards Slashes?

I am not sure if this is a glitch in LC7 or if it really even matters, but when I am using the defaultfolder to get the path of my app's directory, I notice the slashes it returns are forward slashes instead of back slashes. get the defaultfolder answer it shows me this: http://i.imgur.com/Ge08TZb.g...
by stoavio
Fri Oct 31, 2014 11:33 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Client / Server Application
Replies: 5
Views: 4619

Re: Client / Server Application

When you deploy the client by (for instance) login script, you could put the destination of the config file as a parameter, as part of that script, couldn't you? Hi SparkOut. That is an interesting idea. For what it's worth, I am trying to put together an application that I can distribute for other...
by stoavio
Fri Oct 31, 2014 12:47 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Client / Server Application
Replies: 5
Views: 4619

Re: Client / Server Application

Maybe I'll make both the client and server into one application that can somehow heuristically detect whether it is running on an end-users machine in "client mode" or running on an administrator's machine in "server-mode". In server-mode the configuration GUI would be present and in client-mode the...
by stoavio
Fri Oct 31, 2014 12:38 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Client / Server Application
Replies: 5
Views: 4619

Re: Client / Server Application

My first thought is to set the default directory of a settings file relative to the server application, i.e. the settings file resides in a subfolder with the application itself. My second thought is probably impractical, but if you have a web server setup, you could have the client app look at a U...