View Full Version : Newbie new to programming
frizou
08-13-2009, 10:26 PM
Hello to you all,
Sorry i'am new to programming and to PPL2.
I would like to start with a hello World in PPL2 . Is there a video some where.
I'am not an expert in programming, i'am starting from zero. I woul like to start but i dont know from where:confused:
Can some of the experts point me in a good direction so i can start some where.
Thanks to you all!
Sorry for my english.
Have a nice day.
Frizou:D
kornalius
08-14-2009, 06:48 PM
We are working on a big tutorial manual that should be hopefully ready in a couple weeks. The reason it is taking longer than expected is that technical writer was sick for about a week.
To create an Hello World, try the following:
1. Create new project, select Procedural Project.
2. Write in the code ShowMessage("Hello World!");
3. Run it.
1. Create a new Desktop Form project
2. Double-click the DefaultForm object.
3. Add a Button component on the form.
4. Double-Click the Button.
5. Select the OnClick visual code line.
6. Press Ctrl+Space key combo to get the code completion dialog.
7. Type ShowMessage and select it.
8. Now in Expr property, enter Hello World!
9. Run your code
10. Click the Button1 button.
There are many ways you can do a program in PPL 2, another would be to create a Console project. I just noticed a few problems with the Console project, I am going to fix that before 2.1 comes out.
jdixon
08-15-2009, 05:40 AM
in step 7 you said type showmessage and select it. I did it and showmessage does not come up as a option. What is it that I am doing wrong?
argnob
08-15-2009, 11:12 AM
I also tried to follow the instructions but presumably didn't get something right, as I get 257 warnings and 2 errors!
With the Button1 line selected, Control + space did bring up for me a box headed PButton with a list of commands underneath and a box for typing text and I was able to type ShowMessage and hit return to insert a ShowMessage line.
I noted that on my system the appearance of the PButton box was delayed because Panda antivirus did some checking each time before the PButton box was displayed.
I attach a bitmap which may reveal to others with a greater understanding of this software than me (which is probably a threshold very easily crossed!) where I'm going wrong.
argnob
08-15-2009, 11:44 AM
Immediately spotted an error in my description of the line highlighted at time Control + space is hit. Nevertheless, so far as I can see, what I've done is follow the instructions but presumably I haven't, through misunderstanding something somewhere.
It's hard to find a good solution for helping people learn to use PPL 2.xx. It's probably right that Alain is using a technical writer who may have more of an outsider's perspective and may explain things that Alain doesn't spot the need to explain because of his great familiarity with the product. There's the problem of different audiences with some would-be users competent programmers and some people with not much idea how to program. And would-be users familiar largely with writing lines of BASIC code may be totally flummoxed by a drag-and-drop visual environment. Personally, I'm most familiar with playing with a few varieties of BASIC and haven't yet got over the tendency to initially read, say, "A$" in PPL code as a string variable.
I've had a look at some of the Arianesoft videos on YouTube but my bandwidth isn't good for seeing them play smoothly and I think I'd want a dual screen setup to really benefit - watching, pausing and doing.
A problem with both videos and manuals full of screenshots is that they may quickly become dated as revisions to the software change its menus etc. Nevertheless, it may well be usually possible to find the new equivalents of what is described - and, if not, we can ask in the support forum.
Kobus
08-15-2009, 11:52 AM
Hello,
Argnob,
Your button now is an object of your project. When you select that line and drag it on top of the DefaultForm line is should work.
They are working on the 257 warnings, but it's nothing to worry about.
JDixon,
Did you select the proc OnClick line before doing Ctrl+Space?
Greetzz,
Helen.
argnob
08-15-2009, 12:40 PM
The two errors are the same as are present if a new desktop project is run without adding anything:
File DefaultForm1
Messages:
Class "PDEFAULTFORM.EXIT1_ONCLICK" not found at 'PDEFAULTFORM.EXIT1_ONCLICK"
Syntax error at 'CLOSE'
kornalius
08-15-2009, 01:19 PM
Please try updating to 2.1 and try the tutorial again.
It looks like you've played around with the piece of code in the Exit1 object. Start your project fresh.
argnob
08-15-2009, 08:40 PM
in the Exit1 object - though am doing a further re-download and reinstall.
Please can you confirm whether a new Desktop Form project with nothing yet done to it should be runnable without errors?
Please can you confirm that although you're calling this PPL 2.1, the current PPL Base Edition files are numbered 2.01.0000?
Thank you for your input.
Will have another go and see if problems have gone away - though not optimistic. Will report further.
Kobus
08-15-2009, 09:03 PM
Hi Argnob,
PPL 2.01 is the latest version.
Did you finish the Hello world example?
Greetz,
Helen.
argnob
08-15-2009, 09:10 PM
Just to report back that my lack of faith was misplaced.
Redownloaded. Went through full installation process, including accepting license agreements. Button bar in PIDE 2 is now different, e.g. there's a button to run on a mobile device.
Running a brand new desktop form project with nothing added now runs without errors.
Successfully followed instructions to run an error-free Hello World desktop form project.
Now for the hard part of trying to do something practically useful!!
Thanks, all for your input.
kornalius
08-16-2009, 03:33 AM
A desktop form project runs without errors here for a long time. I don't know what could wrong on your system. Please send me anything you have related to this error at support@arianesoft.ca it will be look into in a short time.
Best Regards,
Alain Deschenes
ArianeSoft Inc.
http://www.arianesoft.ca
Sent from my phone
frizou
08-24-2009, 05:29 PM
Hello all,
I did try the small Hello World, and i was blocked at the step 7.
Where we do the Ctrl+SpaceBarre. When i enter the ShowMessage, i dont get that in the list.
If i enter Close instead of the ShowMessage it works.
What did i do wrong.
Thanks:confused:
kornalius
08-24-2009, 06:41 PM
Hi, which version of PPL 2 are you using?
Type the showmessage while focused on the listbox not the edit field. The edit field is to search using Tags.
frizou
08-25-2009, 03:46 AM
You will see all the version in the attached jpeg's.
Thanks.
Mario :D
frizou
08-25-2009, 04:32 AM
I was looking in the PIDE in the Help menu in the top of the software and i tried all the top command in the Help menu and i coudent get them to work. :confused:
They work in the Welcome form but not in the Help menu.
Thanks.
Mario
kornalius
08-25-2009, 12:44 PM
Hi,
It looks like PPL 2 Base Edition is still an old version, even though it says 2.01 in CleverUpdate. Try uninstalling PPL 2 Base Edition and re-installing again.
frizou
08-25-2009, 03:36 PM
I did uninstall all of PPL and i did re-install all and it works.
Great!!
:D
Now i will need to go to the next step.
Have a nice day!
kornalius
08-25-2009, 03:48 PM
Excellent!
frizou
08-27-2009, 12:31 AM
So if i want to do the same thing but on my smartphone that hase WM6.1 on it.
Do i do the following?
1. Create a new Mobile Form project
2. Double-click the DefaultForm object.
3. Add a Button component on the form.
4. Double-Click the Button.
5. Select the OnClick visual code line.
6. Press Ctrl+Space key combo to get the code completion dialog.
7. Type ShowMessage and select it.
8. Now in Expr property, enter Hello World!
9. Run your code
10. Click the Button1 button.
But if i want to run it on the phone, do i need to make a exe or what do i need to do?
I did try to make a exe, but id did not see any new files.
I did get a exe when i was using the DefaultForm.
Thanks for helping the beginner.
Have a nice day.
Mario :D
kornalius
08-27-2009, 01:55 PM
You should have a Mobile menu. Select Run from there. First connect your device, make sure it syncs with ActiveSync or Windows Device Media Center.
kornalius
08-27-2009, 01:55 PM
You should have a Mobile menu. Select Run from there. First connect your device, make sure it syncs with ActiveSync or Windows Device Media Center.
frizou
08-27-2009, 09:34 PM
Well i did connect my Samsung Omnia 910i and it did sync becauce i did see PPL2 instal it self on the phone, i have a rep in the ProgrameFiles\PPL2 and another in the My Documents\PPL Demos, with files in etch of them.
So it did connect.
When i go in Mobile in the menu of PIDE and i use Run or Compile Release, i get the same error. (See attacheent)
Thanks.
Mario :confused:
kornalius
08-28-2009, 02:01 AM
Ok, turn all firewalls off and anything that could close the port 1002. If you still have issues, please contact us at support@arianesoft.ca
frizou
08-28-2009, 05:34 PM
I did all turn off the firewall. The sync does works , i can go with the explorer and look in the content of the phone. and pide did instal ppl2 on the phone.
So i will contact the support team.
Thanks
Mario :confused:
kornalius
08-28-2009, 09:17 PM
Also make sure the folder in Project object (mobile_folder) is set correctly. Got your email will have go into debug mode and send me a file so I can see what is going under the hood.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.