Search found 9387 matches

by dunbarx
Fri Apr 01, 2016 6:28 pm
Forum: Talking LiveCode
Topic: Environment question
Replies: 2
Views: 1508

Re: Environment question

Richard.

Oh, goody.

Thanks so much.

So LC translates as required, in the same way it does so in other instances, like "write to file" for end-of-line characters.

Craig
by dunbarx
Fri Apr 01, 2016 3:49 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Hiding and un-hiding a Card & skipping when hidden
Replies: 11
Views: 5879

Re: Hiding and un-hiding a Card & skipping when hidden

Hi. "Hide" can mean several things. As you learned, you cannot hide a card like you can hide a control. A card IS the window. If you had a stack with one card only, the only way to hide it is to close the stack or send it offscreen (a common trick, by the way). Since you have several cards, you must...
by dunbarx
Fri Apr 01, 2016 3:10 pm
Forum: Talking LiveCode
Topic: Environment question
Replies: 2
Views: 1508

Environment question

I need to make a standalone for both Windows (ptui) and Mac. I need to write a file to a remote server. The Mac uses forward slashes (/) to delimit levels of the pathName, but Windows uses backSlashes (\). How does a standalone know which machine it is running on? The "systemVersion" function can be...
by dunbarx
Thu Mar 31, 2016 11:49 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Looking for Calendar addin?
Replies: 9
Views: 6141

Re: Looking for Calendar addin?

Hi.

I never dug that deeply into the gadget. But if you do all the things you mentioned, they will work. CalendarPane is just a LC stack.

Craig
by dunbarx
Thu Mar 31, 2016 4:51 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Application session
Replies: 5
Views: 2414

Re: Application session

...thought there was a master reset that reset...
Here is the wrong way to do it. Make your standalone the actual working stack. Then nothing will be saved at all.

Craig
by dunbarx
Thu Mar 31, 2016 4:31 pm
Forum: Talking LiveCode
Topic: Limiting a field to 2 decimal places
Replies: 21
Views: 10482

Re: Limiting a field to 2 decimal places

Hi.

So much fun. In the field script:

Code: Select all

on keyUp pKey
   set the itemDel to "."
    if pKey is  in "0123456789." and the length of item 2 of me < 3 then pass keyUp
end keyUp
Craig Newman
by dunbarx
Thu Mar 31, 2016 4:10 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Application session
Replies: 5
Views: 2414

Re: Application session

Hi. The right way to do this is to store all the relevant properties and reset them upon "closeCard". I do not know how many controls you need to do this with, but at least it only has to be set up once. You would likely have to do this in a long list of single line settings, though perhaps a loop m...
by dunbarx
Mon Mar 28, 2016 10:48 pm
Forum: Talking LiveCode
Topic: Crash LC with just a slash
Replies: 2
Views: 1499

Re: Crash LC with just a slash

Richard.

Thanks, Sloppy submission. I have my Mac and PC versions running fine. Thank you.

The slasher still lurks out there. I will send it along. See if I can crash the whole of Scotland.

Craig
by dunbarx
Mon Mar 28, 2016 10:02 pm
Forum: Talking LiveCode
Topic: Crash LC with just a slash
Replies: 2
Views: 1499

Crash LC with just a slash

I am a newbie at writing to external text files. I made a new stack (v. 6.7.9) with one button. It is an instance of a project I am working on. In the button script: on mouseUp answer folder "XYZ" put it into tPath --DEOS NOT WORK, BUT AT LEAST NO CRASH --put it & "/" into tPath --THIS WILL CRASH LC...
by dunbarx
Mon Mar 28, 2016 5:04 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Cascading Menus
Replies: 5
Views: 2910

Re: Cascading Menus

Good luck. Write back with your findings.

Note that even though I placed that menuItem list in a code tagged section, I meant that the contents of the button was to be set to that text.


Craig
by dunbarx
Sun Mar 27, 2016 8:16 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Looking for Calendar addin?
Replies: 9
Views: 6141

Re: Looking for Calendar addin?

I have used "Calendar Pane". Simple and stable.

Craig Newman
by dunbarx
Sun Mar 27, 2016 1:23 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Cascading Menus
Replies: 5
Views: 2910

Re: Cascading Menus

Hi. Succinct answers with code only. What, you will not read any other form of reply? The helpers here are all volunteers, you see. Anyway. However you read data from any source, all four styles of menu-like buttons use tabs within the contents of the button to format menuItems and subMenuItems. Do ...
by dunbarx
Sat Mar 26, 2016 2:21 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: how to shorten a string from point 'a' to end
Replies: 7
Views: 3777

Re: how to shorten a string from point 'a' to end

Richard said it all. So if you had a string "ABCDE", and you: answer char 3 to -1, you get "CDE" answer char 3 to -3, you get "C" answer char 3 to -4, you get empty. It might be said that "the last char" and "char -1" are equivalent (I suspect it is considered more modern to use "-1"). Be aware this...
by dunbarx
Fri Mar 25, 2016 7:14 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to make check boxes with Script
Replies: 2
Views: 1720

Re: How to make check boxes with Script

What Klaus said. Just making sure that you know he suggested TWO methods. Setting the style of a button, which can be done at any time to any object, back and forth, same as setting any property at all, or, Setting the template[object], which presets ALL the properties of a newly created object. Try...

Go to advanced search