Page 1 of 1

1st Post

Posted: Fri Sep 14, 2012 2:19 am
by drfaisalfarooqueBUSJWQK
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

Re: 1st Post

Posted: Fri Sep 14, 2012 6:15 am
by dunbarx
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

Re: 1st Post

Posted: Fri Sep 14, 2012 9:57 am
by drfaisalfarooqueBUSJWQK
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

Re: 1st Post

Posted: Fri Sep 14, 2012 11:32 am
by Klaus
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

Re: 1st Post

Posted: Sat Sep 15, 2012 9:56 am
by drfaisalfarooqueBUSJWQK
Thanks Klaus,

Very informative.

Kind regards.

Faisal

Re: 1st Post

Posted: Wed Oct 17, 2012 11:06 am
by drfaisalfarooqueBUSJWQK
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

Re: 1st Post

Posted: Wed Oct 17, 2012 11:50 am
by jmburnod
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

Re: 1st Post

Posted: Wed Oct 17, 2012 12:52 pm
by drfaisalfarooqueBUSJWQK
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

Re: 1st Post

Posted: Wed Oct 17, 2012 1:34 pm
by Klaus
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

Re: 1st Post

Posted: Thu Oct 18, 2012 1:32 am
by drfaisalfarooqueBUSJWQK
Thanks Klaus.

I have just sent you an email.

Best regards.

Faisal