Search found 1320 matches

by pjw
Mon Oct 27, 2014 11:09 pm
Forum: Software & Programming
Topic: TURBO parameter names
Replies: 33
Views: 15652

Re: TURBO parameter names

PS: There is no problem otherwise in re-using a (scalar) variable name as a parameter. Basically, it works the same a declaring a variable LOCal within the proc/fn, and will have no effect on any global variable of the same name. Great! It would be a fiddly to keep a library of proc/fns if one had t...
by pjw
Mon Oct 27, 2014 11:00 pm
Forum: Software & Programming
Topic: TURBO parameter names
Replies: 33
Views: 15652

Re: TURBO parameter names

Im a bit rusty, but in SBasic, which is the SMSQ/E variant of SuperBASIC, once you have DIMmed a variable you cant use the same name again as a scalar variable or function or procedure name. I believe the same holds true for SupberBASIC. Also, once youve defined a proc/function, you cannot DIM an ar...
by pjw
Sun Jul 27, 2014 5:50 pm
Forum: Software & Programming
Topic: Follow up EasyPTR question
Replies: 2
Views: 2032

Re: Follow up EasyPTR question

I think its an EZP bug. You can make the first row smaller than 10 pix, but you cant put anything in it - such as a suitably sized sprite. Height 10+ and text or sprites works fine. Im sure youll find a work-around ;)

Per
by pjw
Sat Jul 19, 2014 1:05 am
Forum: Software & Programming
Topic: EasyPTR query
Replies: 10
Views: 6040

Re: EasyPTR query

That should work.
by pjw
Fri Jul 18, 2014 7:02 pm
Forum: General QL Chat
Topic: Registered members
Replies: 5
Views: 3596

Registered members

Snipped from the Board Index page:

Registered users: Baidu [Spider], pjw

Hmm, I wonder how a Baidu spider managed to register..
by pjw
Fri Jul 18, 2014 6:57 pm
Forum: Software & Programming
Topic: EasyPTR query
Replies: 10
Views: 6040

Re: EasyPTR query

An event could be as simple as RDPT#ch; 48. This call returns immediately. All you need is a channel. So:
DIM erec%(15)
open channel and OUTLine it, then
...
RDPT#ch; 48: pval#ch; erec%
orgx% = erec%(10): yorg% = erec%(11)
by pjw
Thu Jul 17, 2014 9:06 pm
Forum: Software & Programming
Topic: EasyPTR query
Replies: 10
Views: 6040

Re: EasyPTR query

Try PVAL
by pjw
Tue Jul 15, 2014 4:41 pm
Forum: Software & Programming
Topic: JOB ID
Replies: 8
Views: 4596

Re: JOB ID

I decided to put my money where my mouth is (- or should that be my foot where my mouth is?) and devise a "safe" work-around for the problem I believe you presented. If this was not the problem, apologies. It was the problem for me recently, until I solved it in another way, hence my inter...
by pjw
Tue Jul 15, 2014 3:39 pm
Forum: Software & Programming
Topic: JOB ID
Replies: 8
Views: 4596

Re: JOB ID

Yes, it was the most recently started job about 1/50th of a second ago! Ie, if you want the most recent job because you started it to control it in some way, it is not a sure-fire way to do it. Some other process could conceivably start another job between you activating your job and getting its han...
by pjw
Sun Jul 13, 2014 11:36 pm
Forum: Software & Programming
Topic: JOB ID
Replies: 8
Views: 4596

Re: JOB ID

If it is the 'most recent' job you want it is the one with the highest 'tag' (see example below). If you are looking for a specific job you could search for it by name (modify the code below accordingly). If you want to execute a job and get that particular job's ID, then FEX is the best way to go -...