Search found 240 matches

by EmmBee
Sat Apr 22, 2017 3:41 pm
Forum: Software & Programming
Topic: (Nearly) solved: FuNction which tests if a variable is set
Replies: 23
Views: 10880

Re: (Nearly) solved: FuNction which tests if a variable is set

Have you thought out how this could be done? I was only considering just scanning SuperBASIC name table and list out names of unset variables. Easily done, soon... I agree, this would be the easiest solution. I've written a rough version. It scans through the name table looking for simple float or ...
by EmmBee
Fri Apr 21, 2017 1:20 pm
Forum: Software & Programming
Topic: (Nearly) solved: FuNction which tests if a variable is set
Replies: 23
Views: 10880

Re: (Nearly) solved: FuNction which tests if a variable is set

Re SMSQ/E BASIC unset variables: As much as I love SMSQ/E Basic, I dislike the way unset variables default to zero. I have almost teared my hair out trying to find a bug in a large listing, only to eventually find it was a simple typo in a long variable name. Tempted to write procedure to list unse...
by EmmBee
Fri Apr 21, 2017 12:09 pm
Forum: Software & Programming
Topic: (Nearly) solved: FuNction which tests if a variable is set
Replies: 23
Views: 10880

Re: (Nearly) solved: FuNction which tests if a variable is set

If it has a value, it's name type (first byte of NT entry) will be 2, else 0. Yes, I have tested it. PARUSE is also working outside functions. Unfortunately it has a bug (on Minerva and SMSQ/E): Because of the bug in PARUSE, we could instead use Jan's earlier formula, and have code such as ... IF B...
by EmmBee
Thu Apr 20, 2017 12:00 am
Forum: Software & Programming
Topic: (Nearly) solved: FuNction which tests if a variable is set
Replies: 23
Views: 10880

Re: (Nearly) solved: FuNction which tests if a variable is set

Is there a S(uper)BASIC-function which tests if a variable is set? e.g.: REMark Turbo Toolkit required for END_CMD IF NOT variableSet(a_%):END_CMD REMark Alternative: IF NOT variableSet("a_%"):END_CMD REMark Continue with command file only if a_% is set REMark ... (your commands) END_CMD ...
by EmmBee
Wed Apr 19, 2017 4:42 pm
Forum: Software & Programming
Topic: (Nearly) solved: FuNction which tests if a variable is set
Replies: 23
Views: 10880

Re: (Nearly) solved: FuNction which tests if a variable is set

Is there a S(uper)BASIC-function which tests if a variable is set? The DIY toolkit volume "P" has a function called "UNSET". See: http://www.dilwyn.me.uk/tk/index.html This returns 1 if no value has been set, otherwise 0. E.g. okay = NOT UNSET(var%) If there are commands (I don'...
by EmmBee
Tue Mar 21, 2017 1:35 pm
Forum: Software & Programming
Topic: VAL function in SuperBasic
Replies: 14
Views: 6844

Re: VAL function in SuperBasic

Perhaps experimenting with the keyboard settings on QPC2's front panel could make a difference to the keyboard queue handling. Taking Steve's idea a bit further, we can implement a more robust version of VAL by using S*BASIC's coercion ability, to return any data type, coerced into a string. If our ...
by EmmBee
Sun Mar 19, 2017 11:55 pm
Forum: Software & Programming
Topic: VAL function in SuperBasic
Replies: 14
Views: 6844

Re: VAL function in SuperBasic

Hi all, I can recommend this attempt at an expression evaluator ... DEFine FuNction VAL(x$) LOCal result result = 0 IF x$ <> FILL$(" ",LEN(x$)) COMMAND_LINE TYPE_IN "result = " & x$ & CHR$(10) TYPE_IN "CONTINUE" & CHR$(10) STOP END IF RETurn result END DEFin...
by EmmBee
Sat Mar 18, 2017 10:56 pm
Forum: Software & Programming
Topic: VAL function in SuperBasic
Replies: 14
Views: 6844

Re: VAL function in SuperBasic

tofro wrote:
in case you have Minerva or SMSQ/E, you can pipe the VAL "evaluation line" as a program line to an S*Basic child job and have the result piped back from there.
Hi tofro,

Can you give an example of how this can be done in QPC2, please.

EmmBee
by EmmBee
Tue Mar 14, 2017 7:27 pm
Forum: Software & Programming
Topic: QTImage 1.0
Replies: 7
Views: 3848

Re: QTImage 1.0

Hi,

Yes, I've tried to load a _pic file, but get the error message of "Picture mode not supported".

Michael
by EmmBee
Tue Mar 14, 2017 4:26 pm
Forum: Software & Programming
Topic: QTImage 1.0
Replies: 7
Views: 3848

Re: QTImage 1.0

Hi Giorgio,

I have installed the DBAS extension, and can now display QTImage's front panel.
Next, how can I display your wonderful pictures, please?

Michael