Chat with Me -- HOST
#56
(12-16-2022, 04:56 PM)Kernelpanic Wrote: Thanks, Pete! I would not have thought of the "$" next to the function.

Maybe you and I should campaign so the "AS TYPE" clause could be put at the end of a function header. Do you use Freebasic or Visual Basic? You have to try to remember QB64(PE) still requires the type sigils, whatever they are, right after a function's name in the header, and nothing except "STATIC" right after the closing parenthesis of the parameter list.

It should have been easy to remember that any string function in QB64(PE) must carry the dollar sign at the end of the name! Like "MID$", "STR$", "SPACE$" and so on.

Instead of:

function addtwo (one as long, two as long) as long

you must write it:

function addtwo& (one as long, two as long)

You write code in the other BASIC, and then you should load it into the QB64 IDE, which should flag the errors of "AS TYPE". Then you should know which sigil for which type.

https://qb64phoenix.com/qb64wiki/index.p...able_Types

EDIT: Why isn't the "DECLARE" line flagged as an error? Maybe it's what allows the user's function to be used without the dollar sign. (facepalm)
Reply


Messages In This Thread
Chat with Me -- HOST - by SMcNeill - 12-11-2022, 12:30 PM
RE: Chat with Me -- HOST - by SMcNeill - 12-11-2022, 12:37 PM
RE: Chat with Me -- HOST - by Pete - 12-11-2022, 05:41 PM
RE: Chat with Me -- HOST - by Kernelpanic - 12-11-2022, 06:02 PM
RE: Chat with Me -- HOST - by Pete - 12-11-2022, 06:13 PM
RE: Chat with Me -- HOST - by Kernelpanic - 12-11-2022, 07:08 PM
RE: Chat with Me -- HOST - by SMcNeill - 12-11-2022, 08:26 PM
RE: Chat with Me -- HOST - by Kernelpanic - 12-11-2022, 08:47 PM
RE: Chat with Me -- HOST - by SMcNeill - 12-11-2022, 08:55 PM
RE: Chat with Me -- HOST - by Kernelpanic - 12-11-2022, 09:13 PM
RE: Chat with Me -- HOST - by Pete - 12-11-2022, 11:19 PM
RE: Chat with Me -- HOST - by Kernelpanic - 12-11-2022, 11:49 PM
RE: Chat with Me -- HOST - by Pete - 12-12-2022, 12:34 AM
RE: Chat with Me -- HOST - by mnrvovrfc - 12-12-2022, 08:46 AM
RE: Chat with Me -- HOST - by Kernelpanic - 12-13-2022, 12:08 AM
RE: Chat with Me -- HOST - by mnrvovrfc - 12-13-2022, 12:24 AM
RE: Chat with Me -- HOST - by SMcNeill - 12-13-2022, 12:26 AM
RE: Chat with Me -- HOST - by Kernelpanic - 12-13-2022, 03:43 PM
RE: Chat with Me -- HOST - by mnrvovrfc - 12-13-2022, 05:06 PM
RE: Chat with Me -- HOST - by Pete - 12-13-2022, 12:57 AM
RE: Chat with Me -- HOST - by mnrvovrfc - 12-13-2022, 01:22 AM
RE: Chat with Me -- HOST - by Kernelpanic - 12-13-2022, 03:40 PM
RE: Chat with Me -- HOST - by Pete - 12-13-2022, 04:29 PM
RE: Chat with Me -- HOST - by SMcNeill - 12-13-2022, 03:44 PM
RE: Chat with Me -- HOST - by Kernelpanic - 12-13-2022, 03:53 PM
RE: Chat with Me -- HOST - by Kernelpanic - 12-13-2022, 03:49 PM
RE: Chat with Me -- HOST - by Pete - 12-13-2022, 05:38 PM
RE: Chat with Me -- HOST - by mnrvovrfc - 12-13-2022, 06:34 PM
RE: Chat with Me -- HOST - by Pete - 12-13-2022, 07:00 PM
RE: Chat with Me -- HOST - by Kernelpanic - 12-13-2022, 09:23 PM
RE: Chat with Me -- HOST - by Pete - 12-13-2022, 09:29 PM
RE: Chat with Me -- HOST - by SpriggsySpriggs - 12-13-2022, 09:12 PM
RE: Chat with Me -- HOST - by Kernelpanic - 12-13-2022, 09:34 PM
RE: Chat with Me -- HOST - by Pete - 12-13-2022, 10:06 PM
RE: Chat with Me -- HOST - by mnrvovrfc - 12-14-2022, 08:35 AM
RE: Chat with Me -- HOST - by Kernelpanic - 12-13-2022, 11:10 PM
RE: Chat with Me -- HOST - by mnrvovrfc - 12-14-2022, 09:52 AM
RE: Chat with Me -- HOST - by SpriggsySpriggs - 12-14-2022, 04:42 PM
RE: Chat with Me -- HOST - by Pete - 12-14-2022, 07:27 PM
RE: Chat with Me -- HOST - by Kernelpanic - 12-14-2022, 10:44 PM
RE: Chat with Me -- HOST - by mnrvovrfc - 12-15-2022, 01:48 AM
RE: Chat with Me -- HOST - by Pete - 12-14-2022, 10:52 PM
RE: Chat with Me -- HOST - by Kernelpanic - 12-14-2022, 11:27 PM
RE: Chat with Me -- HOST - by SMcNeill - 12-14-2022, 11:35 PM
RE: Chat with Me -- HOST - by Pete - 12-15-2022, 12:04 AM
RE: Chat with Me -- HOST - by SMcNeill - 12-15-2022, 12:09 AM
RE: Chat with Me -- HOST - by TempodiBasic - 12-15-2022, 12:54 AM
RE: Chat with Me -- HOST - by SpriggsySpriggs - 12-15-2022, 02:39 PM
RE: Chat with Me -- HOST - by mnrvovrfc - 12-15-2022, 02:52 PM
RE: Chat with Me -- HOST - by Kernelpanic - 12-16-2022, 12:59 AM
RE: Chat with Me -- HOST - by SpriggsySpriggs - 12-15-2022, 02:58 PM
RE: Chat with Me -- HOST - by Kernelpanic - 12-16-2022, 12:53 AM
RE: Chat with Me -- HOST - by Pete - 12-16-2022, 02:19 AM
RE: Chat with Me -- HOST - by Kernelpanic - 12-16-2022, 04:56 PM
RE: Chat with Me -- HOST - by mnrvovrfc - 12-16-2022, 11:24 PM
RE: Chat with Me -- HOST - by Kernelpanic - 12-16-2022, 10:01 PM
RE: Chat with Me -- HOST - by Kernelpanic - 12-17-2022, 05:55 PM
RE: Chat with Me -- HOST - by Pete - 12-17-2022, 06:13 PM
RE: Chat with Me -- HOST - by Kernelpanic - 12-17-2022, 08:12 PM
RE: Chat with Me -- HOST - by Kernelpanic - 12-17-2022, 08:54 PM
RE: Chat with Me -- HOST - by Pete - 12-18-2022, 09:33 AM
RE: Chat with Me -- HOST - by Kernelpanic - 12-17-2022, 09:57 PM



Users browsing this thread: 30 Guest(s)