Nebula Research and Development

Pick / MultiValue DBMS Experts

  • Home
  • About
  • Contact
  • Blog
  • Search

Code tip: Include items – Part 1

I usually don’t post code tips but since I haven’t published anything in a while, I thought I’d post this tidbit on how to use Include items elegantly.

I use Include items extensively. You need Includes at the top of programs for EQUates, DIM, Common, and other compiler directives. Some people put Includes in the middle of their mainline code because it doesn’t interrupt other flow. And some people put Includes at the bottom. I tend to put all Includes at the top to make them easy to find. So how do we avoid having the code executed on entry? In the Include items I do this:

IF 0 THEN
label1: *...
return

label2: *...
return
END
Because of the IF 0, Nothing in that code block can get executed with a fall-through. My mainline code just does a GoSub for everything that’s required. In my eye, this is more elegant than the following.
GOTO SKIP
label1: *...
return

label2: *...
return
SKIP: * continue here
The problem with that is that you need a label that’s unique to every Include item. The IF 0 construct is exactly the same in every Include item.

Do you have a preferred or better way to organize Includes? Let me know.

I plan to post at least two other small tip articles on this topic very soon. Come back and check um out!

BASIC

Post navigation

Google Groups extra signature → ← Remote execution of client code from the server

Leave a Reply Cancel reply

You must be logged in to post a comment.

Recent Posts

  • Major blog update
  • What’s up?
  • Intelligent User Interfaces
  • Amazon Web Services and MV Taboo
  • Building Community
  • System Maintenance – a quick note
  • MV Monitoring and Notification Part 2
  • Notifications for MV Support Providers
  • Upgrading blog soon
  • D3 OSFI Explored

Topics

.NET AccuTerm API BASIC blog BlueFinity Caché charts community D3 e-mail environment variables Excel Facebook FOSS Google graphs GUI import/export LinkedIn marketing multivalues mv.NET mySQL NebulaXChange NebulaXLite NebulaXPlus PBX QM RDBMS relational SaaS shell shutdown SMS social media speech SQL Server system monitoring telephony Twitter U2 UniObjects voice Web Services

Recent Blog Posts

  • Major blog update
  • What’s up?
  • Intelligent User Interfaces
  • Amazon Web Services and MV Taboo
  • Building Community
  • System Maintenance – a quick note
  • MV Monitoring and Notification Part 2
  • Notifications for MV Support Providers
  • Upgrading blog soon
  • D3 OSFI Explored

Status

Registration+Login is required to comment on blog posts.

Blogs

  • Brian Leach's MultiValue Blog

Forums

  • jBASE Forum on Google
  • MVDBMS Google Group
  • OpenQM Forum on Google
  • Precision Solutions (Kevin King)

Sites

  • PickWiki.com
Powered by WordPress | theme Layout Builder
 
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OK