1st Post

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
drfaisalfarooqueBUSJWQK
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9
Joined: Thu Aug 02, 2012 2:30 am

1st Post

Post by drfaisalfarooqueBUSJWQK » Fri Sep 14, 2012 2:19 am

Hi everyone,

This is my first post and I am very new to programming. I chose LiveCode as it is English like and seams not too difficult to understand.

I need some help, I was hoping to make a program for both for Mac and iPhone. In which I can create a file in Mac and use iPhone as a reader of that file. I have about 7 or 800 questions and answers (is it a lot??)

What I have in mind is a simple Q&A app with questions in one card and answers in other. It is for personal use so aesthetics is not an issue. I just want a simple app in which I can use. I want to organise these questions in both group wise and date wise and want next and back buttons to navigate between these but gestures to go to and fro one question answer to another in the same group.

Your help will be mush appreciated.

Kind regards.

Faisal

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10305
Joined: Wed May 06, 2009 2:28 pm

Re: 1st Post

Post by dunbarx » Fri Sep 14, 2012 6:15 am

Hi.

Start with the user guide, and read lightly in it, thinking about what it says, Most importantly, experiment regularly as you read, making small gadgets and trying to get them to work. There is no substitute for this. Once you have a few objects working, and it really makes no difference at all what they do, you will quickly start putting the whole together.

LiveCode is immense, and rich. But the good news is that you can do quite well with only a few percent of its potential, adding to your abilities as you gain experience.

Can you make a new stack? Can you place a few buttons on it? You should be able to do this. In those buttons, you will write handlers that will reside in their "scripts". You need to be able to open the script editor. Write back as soon as you have your first stack assembled, and we will start making some of the things you mentioned.

Find the dictionary, and read about "put", "go", and "ask".

The other good news is that the community here is tireless and infinitely patient. You will have your 800 questions answered in about 800 minutes.

Craig Newman

drfaisalfarooqueBUSJWQK
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9
Joined: Thu Aug 02, 2012 2:30 am

Re: 1st Post

Post by drfaisalfarooqueBUSJWQK » Fri Sep 14, 2012 9:57 am

Thanks Craig,

I have just done what you asked and I already started enjoying LiveCode.
Guess I have made a right decision. :D
I also have added Card 2 and put a Back button used a go command to go back to the first card in the stack.
Eager to see What next?

Kind regards.

Faisal

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: 1st Post

Post by Klaus » Fri Sep 14, 2012 11:32 am

Hi Faisal,

welcome to the forum! :D

Please check these stacks to get the basics of LiveCode:
http://www.runrev.com/developers/lesson ... nferences/


Best

Klaus

drfaisalfarooqueBUSJWQK
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9
Joined: Thu Aug 02, 2012 2:30 am

Re: 1st Post

Post by drfaisalfarooqueBUSJWQK » Sat Sep 15, 2012 9:56 am

Thanks Klaus,

Very informative.

Kind regards.

Faisal

drfaisalfarooqueBUSJWQK
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9
Joined: Thu Aug 02, 2012 2:30 am

Re: 1st Post

Post by drfaisalfarooqueBUSJWQK » Wed Oct 17, 2012 11:06 am

Thanks every one,

I have a simple program now, managed to make a stack added fields and button in it.

Then Make them as group, set behave as background.

Scripted New button to create card, then a button to go next and go previous card.

That was all grate.

What I want to do now is to save that stack as a file say "my contents" with some file extension like ".cont" I mean not as .txt file.

2nd thing i want to do now is to make a reader for that file. I dont want to show any button now and only want to use keyboard to navigate between cards.

Can any one guide me further?

Your help is much appreciated.

Best regards.

Faisal

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: 1st Post

Post by jmburnod » Wed Oct 17, 2012 11:50 am

Hi Faisal,
only want to use keyboard to navigate between cards.

Code: Select all

on arrowkey pKey
   if pkey = left then go to prev cd
   if pkey = right then go to next cd
   pass arrowkey
end arrowkey
Best
Jean-Marc
https://alternatic.ch

drfaisalfarooqueBUSJWQK
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9
Joined: Thu Aug 02, 2012 2:30 am

Re: 1st Post

Post by drfaisalfarooqueBUSJWQK » Wed Oct 17, 2012 12:52 pm

Hi Jean-Marc.

That is great.

So only thing left now Is how can I save this stake as file without any buttons and how can i make a reader for that file. I want to save file with an extension different to .txt file.

Best regards.

Faisal
Last edited by drfaisalfarooqueBUSJWQK on Thu Oct 18, 2012 7:42 am, edited 1 time in total.

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: 1st Post

Post by Klaus » Wed Oct 17, 2012 1:34 pm

Marhaba Feisal,

ist the stack in question part of a standalone?

Since this is not so easy to explain and this forum might not be the best place for the neccessary lenghty explanations :D ,
you can mail me privately if you like: klaus AT major-k.de


Best

Klaus

drfaisalfarooqueBUSJWQK
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9
Joined: Thu Aug 02, 2012 2:30 am

Re: 1st Post

Post by drfaisalfarooqueBUSJWQK » Thu Oct 18, 2012 1:32 am

Thanks Klaus.

I have just sent you an email.

Best regards.

Faisal

Post Reply