PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

My first impressions using PPL

directdance · 02 Dec 2005, 08:38 UTC
Hi Kornalius,
and hi to all !

I would like to say thank you for this really nice piece of software. I downloaded the beta only a few days ago and now I have finished my first program wich is running perfectly on my MDA compact (I-mate JAM in the UK). It is a small program for calculating some statistics for some stuff I´m doing on handango and pocketgear. Before this I used an excel sheet for this. This was my first try using PPL. And I have to say, it is really great !

One thing wich was not working on my PPC was:

a$ = b$ [0, 2]

got an access violation and did it this way:

a$ = b$[0] + b$[1]

this worked ...

In your manual is written:


SaveStr("ABCDEF", "\\My Documents\\MyFile.txt", -1)


I had to to this in this way:

SaveStr("\\Storage\\BPRVK\\bprvk.dat", schreibzeile$, -1)

As shown, on my device I had to tell PPL first my filename and after this my content.

But that´s really all.

My last programming activities were ten years ago, never programmed c or c++. Only Cobol (anybody knows this kind of programming language - oh man, I am really old ...), before this, basic and assembler on a c64. That´s all.

I promise to you, I will be your first customer when it will be released !

Thanks a lot,
DirectDance
PointOfLight · 02 Dec 2005, 13:38 UTC
Glad to see you had such a positive experience with PPL. I've been working with it for quite some time and I really like it. I can't wait for the 1.0 release :D As for COBOL, I use it in my job today (for web development, no less), and I'm ONLY 33 :roll: Assembler on a c64 is something I never tried, though (BASIC was the extent of my willingness to program back then).
Wow, thanks for the feedback, I really appreciate the comments. I'm glad you like it.

What type of variable is b$? Is it an array?

As for the SaveStr() function I will update the manual, thanks.

Here is a little sample from the arrays.ppl demo file:

Code:
dim (array$, 10, 10); // Define variable Array$ as a size 10 by 10 array of double value
// elements (8 bytes).
// Note that 10x10 is the size and elements start at 0,0 and ends at 9,9.

array$[0, 0] = 987654; // Set array$ element (0,0) to 987654. Note that array elements start with 0.
array$[5, 5] = 123456; // Set array$ variable element (5,5) to value 123456.
i$ = 999999;
array$[9, 9] = i$; // Set element (9,9) here to 999999.
Hi directdance,

I was looking at your assignment statement and then at what worked for you. It gave me the impression that you were expecting to sum the array B$ starting at element 0 for a length of 2 elements.

Is that what you were trying to do? Is this a COBOL thing?

Welcome to PPL.

bmanske
thrashmetal15 · 04 Dec 2005, 20:05 UTC
I noticed that error too when writing my notepad program
directdance · 05 Dec 2005, 09:39 UTC
Hi and thank you for your comments !

This is what I tried to do with the variables:


hdatum$ = GetText(EDIT103$)
// get a date field, format is DD.MM.YY
Example 05.12.05 from the input mask

DD$ = chr(hdatum$[0]) + chr(hdatum$[1]);
MM$ = chr(hdatum$[3]) + chr(hdatum$[4]);
YY$ = chr(hdatum$[6]) + chr(hdatum$[7]);
// separate day, month, year

datecompare$ = YY$ + MM$ + DD$;
// this is my key for storing data


I tried to fill the DD$ with:

DD$ = hdatum$ [0, 2];

before but got access violation.


I did not know the the [0, 2] is only for arrays, defined with the DIM function.

Cheers,
DirectDance
hdatum$[0,2] should work with strings too. It should give you the first two letters of the string hdatum$, I will do some tests here to make sure it's still working as it should.