|
SheerPower®
4GL
-- Beyond BASIC --
SPDEV FAQ |
| FREE!! Download SheerPower 4GL NOW! | Documentation | SheerPower 4GL Licenses and Support | FAQ |
| Discussion Forum | Voice Tours and Tutorials | Sample Programs | Contact Us |
| General Questions |
Sheerpower Rapid Development Environment QuestionsQ. What is a GOLD key?A. The GOLD key is a specially mapped key used to create many of the special keystrokes available in SPDEV. The [Esc] (escape) and the [Num-Lock] (numbers lock) keys on your physical keyboard are GOLD keys. See Appendix F - Keystrokes for SheerPower Rapid Development Environment for complete details on how to use the GOLD key and other special keystrokes in SPDEV.
Q. Can I map my own keystrokes in SPDEV?
Q. How exactly does the programming GOLD/A keystroke work?
1) aligns code within a highlighted (selected) piece of code In the first case of highlighted code, SPDEV begins at the first line and proceeds to the last line, looking first for equal signs, then for colons. After all the code is scanned for the right-most locations of these symbols, the lines are rewritten with the symbols aligned. For example:
payrate = 45
payor_name$ = client(name)
This would become:
payrate = 45
payor_name$ = client(name)
And the same with colons:
becomes:
open structure pay : name '@pay'
open structure client_master: name '@client'
In the case that no code or text is highlighted and GOLD/A is pressed, SPDEV begins by scanning backwards looking for the FIRST MOST line containing an equal sign. Then SPDEV scans forward for the LAST MOST line that contains an equal sign. At that point the re-alignment is formed as in the above examples. Next, SPDEV searches for the first most and last most lines containing colon symbols. Once these are found, the lines of code are rewritten to align the colons. The alignment does not go across code that is missing an equal sign (or in the COLON scan, missing a colon).
payname$ = 'fred'
rate = 45
print 'got rate of '; rate
deductions_this_month = 10
If GOLD/A is pressed while the cursor is on the code "rate = 45", then just the payname$ and rate lines will be aligned. Why? Because alignment stops when the "print" statement is scanned as that line does not contain any equal sign symbol.
Q. Can SheerPower make .EXE files?
If you want to distribute SheerPower applications, but want to HIDE the source code, SheerPower has a DEPLOY option. The DEPLOY option generates a .SPRUN file that:
In summary, SheerPower 4GL does not generate an .EXE file. Instead, SheerPower 4GL uses a Virtual Machine to run the applications.
|