Re: [Ql-Users] "RETurn not in procedure or function"

2021-07-01 Thread Bob Spelten via Ql-Users
Wolfgang Lenerz via Ql-Users wrote: Hi, in my experience, this is often caused by a Basic extension not resetting the stack correctly. This generally seems to be the case either when a keyword changes the value of an entry parameter, to make it into a return parameter, or when a function

Re: [Ql-Users] "RETurn not in procedure or function"

2021-07-01 Thread François Van Emelen via Ql-Users
Op 28/06/2021 om 13:10 schreef desin via Ql-Users: Am 28.06.21 um 12:31 schrieb Bob Spelten via Ql-Users: "RETurn not in procedure or function" What is causing this error in my Basic? The error has bugged me for weeks now. It even seems able to move around (see below). I ha

Re: [Ql-Users] "RETurn not in procedure or function"

2021-06-29 Thread pjwitte via Ql-Users
On 29/06/2021 11:44, Bob Spelten via Ql-Users wrote: Wolfgang Lenerz via Ql-Users wrote: Hi, in my experience, this is often caused by a Basic extension not resetting the stack correctly. This generally seems to be the case either when a keyword changes the value of an entry parameter, to make

Re: [Ql-Users] "RETurn not in procedure or function"

2021-06-29 Thread Bob Spelten via Ql-Users
Wolfgang Lenerz via Ql-Users wrote: Hi, in my experience, this is often caused by a Basic extension not resetting the stack correctly. This generally seems to be the case either when a keyword changes the value of an entry parameter, to make it into a return parameter, or when a function

Re: [Ql-Users] "RETurn not in procedure or function"

2021-06-28 Thread desin via Ql-Users
Am 28.06.21 um 20:59 schrieb Wolfgang Lenerz via Ql-Users: Hi, See my earlier answer to Bob - where does "EXISTS" come from? > > Wolfgang > http://www.dilwyn.me.uk/tk/exists.zip Exists (3K) - Phil Borman extension function to test if an extension name is currently installed on your system.

Re: [Ql-Users] "RETurn not in procedure or function"

2021-06-28 Thread Wolfgang Lenerz via Ql-Users
Hi, See my earlier answer to Bob - where does "EXISTS" come from? Wolfgang > hello > > found some oddities with Exists and SMSQE > > 10 if exists ("TK2_EXT"):print "TK2" > 20 if exists ("MODE")   :print "mode " > 30 : > 40 print dig_it > 50 : > 60 def fun dig_it > 70 ret 1 > 80 end def >

Re: [Ql-Users] "RETurn not in procedure or function"

2021-06-28 Thread Wolfgang Lenerz via Ql-Users
Hi, in my experience, this is often caused by a Basic extension not resetting the stack correctly. This generally seems to be the case either when a keyword changes the value of an entry parameter, to make it into a return parameter, or when a function returns a value (very often a string). But

Re: [Ql-Users] "RETurn not in procedure or function"

2021-06-28 Thread desin via Ql-Users
Am 28.06.21 um 15:49 schrieb pjwitte via Ql-Users: On 28/06/2021 13:10, desin via Ql-Users wrote: Am 28.06.21 um 12:31 schrieb Bob Spelten via Ql-Users: "RETurn not in procedure or function" <> Bob hello found some oddities with Exists and SMSQE 10 if exists ("TK2

Re: [Ql-Users] "RETurn not in procedure or function"

2021-06-28 Thread pjwitte via Ql-Users
On 28/06/2021 13:10, desin via Ql-Users wrote: Am 28.06.21 um 12:31 schrieb Bob Spelten via Ql-Users: "RETurn not in procedure or function" <> Bob hello found some oddities with Exists and SMSQE 10 if exists ("TK2_EXT"):print "TK2" 20 if exists ("MOD

Re: [Ql-Users] "RETurn not in procedure or function"

2021-06-28 Thread desin via Ql-Users
Am 28.06.21 um 12:31 schrieb Bob Spelten via Ql-Users: "RETurn not in procedure or function" What is causing this error in my Basic? The error has bugged me for weeks now. It even seems able to move around (see below). I have checked for the obvious and didn't find any mismatches.

[Ql-Users] "RETurn not in procedure or function"

2021-06-28 Thread Bob Spelten via Ql-Users
"RETurn not in procedure or function" What is causing this error in my Basic? The error has bugged me for weeks now. It even seems able to move around (see below). I have checked for the obvious and didn't find any mismatches. Also XREF, BasicLinker or QLIB did not report any. Below a summary