Search found 2925 matches

by Richard
May 29, 2007 0:01
Forum: General
Topic: Testing randomness ...
Replies: 21
Views: 4641

Search wikipedia for “Autocorrelation” to find patterns in signals and “Index of coincidence” for substitution ciphers . Also take a look at “Kasiski”.
by Richard
May 26, 2007 11:44
Forum: General
Topic: ?? #LANG deprecated/qb/... ??
Replies: 7
Views: 1611

Take a look at "#pragma lang = qb" thread.
http://www.freebasic.net/forum/viewtopic.php?t=8145
by Richard
May 26, 2007 6:30
Forum: General
Topic: Returning Unicode and FBIde console display.
Replies: 1
Views: 664

Returning Unicode and FBIde console display.

print chr(248) ' the degree sign print "°" ' this one entered by <alt>248 numeric pad keys ' Declare Function foo() As Wstring * 20 Declare Function foo() As String Sleep 1/ Wstring gives "Fixed-len strings cannot be returned from functions" is this restriction doc...
by Richard
May 19, 2007 8:41
Forum: General
Topic: Help me please!
Replies: 8
Views: 1629

This short program segment evaluates an expression passed to it as a string. It does seem like a long way round but it works. ' Pack an expression into an envelope, compile, run then get the result dim as string expression = " 4 * atn(1) " ‘ a test expression dim as string program ...
by Richard
May 19, 2007 7:26
Forum: General
Topic: A small Format Bug [Solved]
Replies: 3
Views: 998

The presence of the comma, not its position is important. You need to provide enough digit positions in the format string or it will have to do the best it can. In this case a leading comma is an artifact of insufficient digits. I don't think it is a compiler bug so much as a programming bug. The co...
by Richard
May 11, 2007 23:24
Forum: General
Topic: trouble using Run/Exec with arguments
Replies: 12
Views: 2133

The next step forward by counting_pine. Yes, it now does give a result code of zero and generates the EXE file. Just how it behaves with multiple lines needs testing. To clarify the double quote soup with space in it; ' arguments &= ("""" & filetext & ""...
by Richard
May 11, 2007 15:56
Forum: General
Topic: trouble using Run/Exec with arguments
Replies: 12
Views: 2133

Good step forwards MichaelW. The use of the extension .exe does improve things but I can’t see how to get round the problem of feeding in a space as part of a parameter. By using chr(34) the string remains intact but gives an “invalid command line option” error. Maybe use the Shell command , or Open...
by Richard
May 11, 2007 13:46
Forum: Documentation
Topic: Glossary Updates
Replies: 5
Views: 2904

Anyone can search the www for a definition, the problem comes in © permission and attributing the source. It is easier if an experienced FreeBASIC user comes up with an original definition, then there can be no future problem. Vectors are a powerful technique used by many FreeBASIC programmers. Vect...
by Richard
May 11, 2007 2:25
Forum: Documentation
Topic: Glossary Updates
Replies: 5
Views: 2904

Just two minor problems. 1/ “Sorry, no new users are been accepted, please post a message in the Documentation forum requesting for an account, thanks.” 2/ If I knew precisely what this new fangled jargon meant then I wouldn’t have looked it up and found it missing. Therefore if I added the word, so...
by Richard
May 10, 2007 21:31
Forum: General
Topic: trouble using Run/Exec with arguments
Replies: 12
Views: 2133

I had trouble with open pipe because my directory name had spaces in it. I used two double quotes which fixed it. Maybe double the singles in your data file or around your exec line.
See Doc Forum. Post subject: Open Pipe example does not work. Posted: Mar 21, 2007 0:20
by Richard
May 10, 2007 18:19
Forum: Documentation
Topic: Glossary Updates
Replies: 5
Views: 2904

Glossary Updates

Graphics terms to add to the glossary? Blit, blitter, blitting. Sprite.

Vector is restricted to a structural definition, we need to expand “Vector” by adding “a directed value having both magnitude and direction.”

Any other suggestions?
by Richard
May 09, 2007 23:29
Forum: Documentation
Topic: Declare Operator
Replies: 4
Views: 2675

No, not that I can see.
Declare { sub_statement | function_statement }
does not include the possibility that you might want to declare an operator, only the sub and function uses are considered on the page.
by Richard
May 09, 2007 22:57
Forum: Documentation
Topic: Declare Operator
Replies: 4
Views: 2675

Declare Operator

The Declare page in the wiki has been left behind since the advent of Declare Operator. IMO we need a link from there to the Operator page.
by Richard
May 09, 2007 14:46
Forum: Documentation
Topic: Using ? instead of print
Replies: 7
Views: 3444

“?” has been a standard shorthand across all BASICs since before 1978. It was used mostly for questioning variable values while debugging with interpreters. Back then, no line number was interpreted as an immediate command. “?” is still used by some fb programmers in their code. Maybe, to satisfy an...
by Richard
May 09, 2007 6:18
Forum: Documentation
Topic: Using ? instead of print
Replies: 7
Views: 3444

Great manual! But in todays FreeBASIC manual the keyword index has an entry; “Operator ? (Concatenate and assign)” that leads to “&= Concatenate and assign” Presumably the ? should be replaced with &= There is no index entry to the “?” used as a shortcut for print, nor is there any mention u...

Go to advanced search