Jabaco Notes For VB Developers

1/21/2011
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Visual BasicJabaco SupportSpecifics...
absExact  
addressof   
and  Refer to operators
appNone Version 1.5.2

App.Path causes Unhandled Null Exception
App.EXEName returns nothing
asExact  
ascExact  
atomic_datatype  Atomic Datatypes:

Boolean
Double
Integer
Long
String
binary  Refer to file_handling
boolean  Refer to atomic_datatype
byrefNone Jabaco ByVal and ByRef keywords have no effect.

Apparently Jabaco considers all parameters as ByVal--modifications of parameters within the subroutine will never affect the values of the variables in the calling subroutine.

Therefore, calling ByVal has no effect. Also, calling ByRef has no effect--it does not override the ByVal behavior. At this point, there is no way to have a ByRef parameter in a Jabaco subroutine call.
byte  No documentation for this topic.
byvalNone Refer to byref
case  Refer to select..case
cbool  No documentation for this topic.
cdate  No documentation for this topic.
char  No documentation for this topic.
chdrive  No documentation for this topic.
chr  No documentation for this topic.
clng  No documentation for this topic.
close  Refer to file_handling
command  No documentation for this topic.
const  No documentation for this topic.
constants  The following Visual Basic constants have been implemented in Jabaco. This is not a complete list, but includes the constants I have verified...

vbCr
vbCrLf
vbNo
vbYes
vbYesNo

vbDirectory: See getattr
createobject  No documentation for this topic.
cstr  No documentation for this topic.
date  No documentation for this topic.
datediff  No documentation for this topic.
day  No documentation for this topic.
dimExact  
dirDifferences Dir does not appear to support wild cards. If a file "C:\test.txt" exists, and the following statement is executed:

sFile = Dir$("c:\*.txt")
Jabaco returns an empty string. VB would have applied the wildcard and found "test.txt"
However, it does successfully test the existence of a file in the case of sFile = Dir$("c:\test.txt")
do  Refer to do..loop_until
do..loop_untilExact Compatible, Exit Loop supported.
doeventsExact  
double  Refer to atomic_datatype
elseExact Applies to: if..then select..case
endDifferences Standalone "End" statement to terminate program appears to be unsupported. Use the following work-around:

VB: End
J:  system.exit(0)
enum  No documentation for this topic.
eof  No documentation for this topic.
erase  No documentation for this topic.
error  No documentation for this topic.
exitExact Applies to: do..loop_until for..next
file_handlingDifferences For basic file handling, the syntax and objects for opening, closing, reading, writing, and file modes is as follows:

VB: F=FreeFile
J:  Dim F as VBFileHandler

VB: Open "file.txt" For Output As #F
J:  F=Open("file.txt",Output,Write,Shared)

VB: Print #F,"hello"
J:  F.WriteString "hello"

VB: Input #F,sValue
J:  sValue=F.read

VB: Line Input #F,sLine
J:  sLine=F.readLine

VB: Close #F
J:  F.close

Jabaco also has additional file handling options, follow the tool tips of the VBFileHandler object.
filecopy  No documentation for this topic.
filedatetime  No documentation for this topic.
fileexists  No documentation for this topic.
filelen  No documentation for this topic.
for  Refer to for..next
for..nextExact  
formatDifferences Format in VB is a catch-all statement, researching Jabaco equivalents now:
freefile  Refer to file_handling
functionExact  
get  No documentation for this topic.
getattrDifferences Supported, but specifics unknown
goto  No documentation for this topic.
hex  No documentation for this topic.
hour  No documentation for this topic.
if  Refer to if..then
if..thenExact  
input_#f  Refer to file_handling
inputbox  No documentation for this topic.
instr  No documentation for this topic.
instrrev  No documentation for this topic.
integer  Refer to atomic_datatype
is  No documentation for this topic.
isdate  No documentation for this topic.
isnull  No documentation for this topic.
isnumeric  No documentation for this topic.
join  No documentation for this topic.
kill  No documentation for this topic.
lcase  No documentation for this topic.
left  No documentation for this topic.
len  No documentation for this topic.
let  No documentation for this topic.
line  No documentation for this topic.
load  No documentation for this topic.
lof  No documentation for this topic.
long  Refer to atomic_datatype
loop  Refer to do..loop_until
me  No documentation for this topic.
mid  No documentation for this topic.
minute  No documentation for this topic.
mkdir  No documentation for this topic.
mod  No documentation for this topic.
month  No documentation for this topic.
msgbox  No documentation for this topic.
new  No documentation for this topic.
next  Refer to for..next
not  Refer to operators
nothing  No documentation for this topic.
now  No documentation for this topic.
open  Refer to file_handling
operators  No documentation for this topic.
optional  No documentation for this topic.
or  Refer to operators
paramarray  No documentation for this topic.
popupmenu  No documentation for this topic.
preserve  Refer to redim
print  No documentation for this topic.
print_#f  Refer to file_handling
private  No documentation for this topic.
public  No documentation for this topic.
put  No documentation for this topic.
raiseevent  No documentation for this topic.
redimExact  
replace  No documentation for this topic.
resume  No documentation for this topic.
right  No documentation for this topic.
rmdir  No documentation for this topic.
second  No documentation for this topic.
select  Refer to select..case
select..caseDifferences Select, Case, and Case Else all work as expected. However, defining ranges using the "To" keyword is not supported:

Select Case sValue
  Case 1 'Supported
  Case 2,3,4 'Supported
  Case 5 to 10 'NOT SUPPORTED
  Case Else 'Supported
End Select
set  No documentation for this topic.
single  No documentation for this topic.
space  No documentation for this topic.
split  No documentation for this topic.
static  No documentation for this topic.
step  Refer to for..next
stop  No documentation for this topic.
string  Refer to atomic_datatype
sub  No documentation for this topic.
then  Refer to if..then
timer  No documentation for this topic.
to  Applies to: for..next select..case dim redim
trim  No documentation for this topic.
type  No documentation for this topic.
ubound  No documentation for this topic.
ucase  No documentation for this topic.
unload  No documentation for this topic.
until  Refer to do..loop_until
val  No documentation for this topic.
variant  No documentation for this topic.
vbchecked  Refer to constants
vbcr  Refer to constants
vbcrlf  Refer to constants
vbdirectory  Refer to constants
vbhidden  Refer to constants
vbkeyadd  No documentation for this topic.
vbkeydelete  No documentation for this topic.
vbkeydown  No documentation for this topic.
vbkeyend  No documentation for this topic.
vbkeyescape  No documentation for this topic.
vbkeyf1  Refer to constants
vbkeyhome  No documentation for this topic.
vbkeyinsert  No documentation for this topic.
vbkeyleft  No documentation for this topic.
vbkeynumpad0  Refer to constants
vbkeypagedown  No documentation for this topic.
vbkeypageup  No documentation for this topic.
vbkeypause  No documentation for this topic.
vbkeyright  No documentation for this topic.
vbkeysubtract  No documentation for this topic.
vbkeyup  No documentation for this topic.
vblf  No documentation for this topic.
vbminimized  No documentation for this topic.
vbno  Refer to constants
vbokonly  No documentation for this topic.
vbstring  No documentation for this topic.
vbtab  No documentation for this topic.
vbtextcompare  No documentation for this topic.
vbunchecked  No documentation for this topic.
vbyes  Refer to constants
vbyesno  Refer to constants
weekday  No documentation for this topic.
wend  Refer to while..wend
while  Refer to while..wend
while..wend  No documentation for this topic.
with  No documentation for this topic.
withevents  No documentation for this topic.
year  No documentation for this topic.

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z