I dont know why this is happening but when I create a source file call "LogError.bas" and compile it I get a strange error message from the compiler. The following code gives the error "Could not find 2139 bytes". What baffles me is using a filename other than "LogError.bas" compiles just fine!
Lance, Tom, maybe you can shed some light on this. While your looking anyway, are there any known issues with VAL and LOG10. I have been running into some problems with incorrect values being returned from VAL and strange PBDLL errors. Also, it seems as though LOG10 doesn't mind being passed ZERO. In the documentation is says that a run-time error 5 "Illegal function call" will result when values of zero or less are passed. Try this to see what I mean...
Any ideas guys?
------------------
Cheers!
Code:
'LogError.bas ***MAKE SURE YOU USE THIS NAME TO SEE WHAT I MEAN*** #compile exe function pbmain as long msgbox"Done." end function
Lance, Tom, maybe you can shed some light on this. While your looking anyway, are there any known issues with VAL and LOG10. I have been running into some problems with incorrect values being returned from VAL and strange PBDLL errors. Also, it seems as though LOG10 doesn't mind being passed ZERO. In the documentation is says that a run-time error 5 "Illegal function call" will result when values of zero or less are passed. Try this to see what I mean...
Code:
#compile exe function pbmain as long dim eValue as ext dim lError as long eValue = log10(0) lError = err msgbox str$(lError) & str$(eValue) end function
------------------
Cheers!
Comment