File Variables
Argument passing - Subroutines and Functions - Mike Pope
RevTech Replies - Mike Pope (RevTech UK Ltd)
Symbol Table Structure
Reader's Clinic - Functions and Subroutines
Reader's Letters - Jim Owen
Playing with Scan Codes
Argument passing - Subroutines and Functions - Mike Pope
Reader's Letters - Jim Owen
@ATTACK - @Return.Value
QTIPS - Local Language Sets
RTP Series - RTP5
VERBatim - V22
Play it Again, Cam
Reader's Forum - Mark Hirst Revelation C Interface - Part 1
Reader's Forum - Numeric Precision in R/Basic - Hal Wyman
QTIPS - Use of Mouse
Reader's Forum The C Interface Part 2 - Mark Hirst (Senior Techie - ICS) Reader's Clinic
Form.List.S
Make.Index
Index Sub Revisited
QTIPS - Make.Index 2.11+
QUERY.SUB
Version 3 Technical Highlights - Creating New Accounts Programmatically
Version 3 TCL Subroutines - Creating New Accounts
Version 3 TCL Subroutines - Creating Tables
Reader's Clinic - Line Length > 256 Characters
QTIPS - String Space
QTIPS - String Space Format Errors
Reader's Forum - Numeric Precision in R/Basic - Hal Wyman
@ATTACK - @Reduction.Done
VERBatim - V119
VERBatim - V125
VERBatim - V118
Advanced Revelation Assembler Interface Module - Yves Pattyn, Technical Manager, Distribase, France
Reader's Clinic - Page Marks in Windows

RevMedia FKB

DocumentV2I6A1
TitleReader's Letters - Jim Owen
KeywordsINT()
SPACE
FUNCTION
Text"I've discovered something that might be of interest to some AREV
programmers regarding the CALLING of homemade functions I had a function
called SPC which padded blank spaces onto a variable For example

X = 65
Y = SPC(X 5 "R")

would return Y = ' 65' (Unsure as to why this differs FROM Y = 65 "R#5"
Ed)

However I discovered that this function ALSO changed X!

I wanted my function to work like INT() which does not change the value of
the variable inside the parens only the value to the left of the '='

RTI told me that the C esque use of local vs global VARIABLES doesn't apply
to RBASIC One way to solve it was to make parameter 1 a literal string
This was done by CALLING the function thus

X = 65
Y = SPC(X:" " 5 "R")

Concatenating a null to the variable changes it to a string and does NOT
change X Another way around the problem was to immediately stuff some other
variable WITH X on entering the function then operating on and returning
this new variable

Incidentally the INT() function is in assembler and avoids the problem
altogether"


(Volume 2 Issue 6 Page 3)
[revmedia/copyrigh.htm]

Page last modified: 08/02/03