basic

Replace last string

I want to replace the last String which is a "," with ")" Suppose the string is Insert into dual (name,date, to be converted to Insert into dual(name,date) ...

how are wpf and silverlight different?

can anyone tell me what is the difference in wpf and silverlight, what features has been added and removed from wpf in order to get silverlight. ...

Basic code to Delphi

I'm struggling with the following: The goal is to parametrize an automation server for openoffice and I'm programming in Delphi. The piece of basic code I want to translate into Delphi code is: Dim aProps(1) As New com.sun.star.beans.PropertyValue aProps(0).Name = "FilterName" aProps(0).Value = "Text - txt - csv (StarCalc)" aProps(1)....

How to display the Authentication Challenge in UIWebView?

I am trying to access a secure website through UIWebView. When I access it through safari, i get an authentication challenge but the same does not appear in my UIWebView in the application. How can I make it appear? Any pointers, sample code or links will be very helpful. Thanks a lot. ...

Downloading pictures/Word documents using ASP.NET

If I put the following code: Response.ContentType = "image/jpeg" Response.AppendHeader("Content-Disposition", "attachment; filename=capitol.jpg") Response.WriteFile(MapPath("capitol.jpg")) into Page_Load, I will get the dialog box to download the image. But when I put the same code into a sub routine: Private Sub downloa...

Compilers for DOS32?

Where can I get BASIC and C/C++ Compilers for MS-DOS? ...

Beginner/Basic Logic Learning

I can usually understand the syntax and learn the syntax quickly for most languages, but what is the best way to learn how the syntax works and the logic behind it, so I can program more efficiently and more logically. Hopefully this question makes sense. Any answers would be much appreciated! ...

Access a 16 Bit DLL.

I have been given the task to upgrade an existing 16 Bit Desktop application originally written in GFA Basic. I want to know if there is a possibility to access the functions inside these 16 Bit Dlls via C/JNI (or any other programming language). I guess, I have to write some sort of an intermediate DLL to access the functionalities from...

Very basic question about Javascript code execution

Do the code (e.g. functions) execute at the same time? or it follows the order in which it was written? (top to bottom)? I know that order doesn't matter in CSS and it matters in HTML, what about JavaScript? For instance, if a function it's executed then the next one (bottom one) will execute, or if 2 functions doesn't have anything to d...

nginx and auth_basic

I am trying to get basic authentication working with nginx in Ubuntu Jaunty. In nginx.conf, I added these two lines under the server context: server { ... auth_basic "Restricted Access"; auth_basic_user_file /etc/nginx/.htpasswd; ... } Then I apt-get'ed apache2-utils to get htpasswd, which I used to create the htpasswd fi...

global array in real basic

Hi, any tips on creating a global array to use in a realBASIC project using 'add property'? Pictured below is my attempt. http://i17.photobucket.com/albums/b52/orubap/basic.jpg Using camModel(1) compiles and runs but it doesn't return anything. Using camModel(4) throws an out of bounds error so I'm guessing I'm half way there. Suggest...

C64 - Commodore 64 programming simplicity

Sometimes I think we have taken a step backwards in programming. In the old days we would just turn on our C64 or spectrum, and immediately we would have a programming environment, and not too many different ways to get a task done (Basic/assembler). Nowadays it is much harder for someone who has purchased a computer (PC or Mac) to progr...

Recommendation To Learn FreeBASIC

I'm now going to have a home project that I need to learn FreeBASIC, and it syntax is like QuickBASIC as on the wiki: FreeBasic is a BASIC compiler with syntax compatible to QuickBasic, with several improvements that make it a viable compiler for Operating System Development. But what did you suggest to me? More suggestion...

Looking for a BASIC interpreter implemented in PHP

Does anyone know of a PHP program that will interpret BASIC code? I have seen a LOLCODE implementation that looks like it's a good place to start, but if anyone has already developed something like that, i'd be grateful. ...

JQuery Ajax basic question

Sorry folks but I asked a question earlier and perhaps did not explain myself very well at all. I answered the question myself to prevent further replies and hopefully to reset the question in a more basic format, as none of the answers worked/explained to me, stress to me, how to do it. There were 4 totally different answers to one bas...

BASIC - activate microphone recording on keypress?

I am charged with an old BASIC program that needs to be altered to activate microphone recording on a specific keypress. I'm having trouble finding out how. Anyone here able to shed any light? Thanks for any help. Edit: I'm pretty sure it was originally written for GW-BASIC. ...

Why the main program in Java is put into a class?

Why does the main method have to be put into a class? I understand the main ideas of OOP but I cannot get why the main program is defined within a class. Will such a class instantiated somewhere? I mean there is no code outside the class. What is a reason to define a class and never use objects of this class? ...

Does EOL == EOS in any other language besides BASIC?

BASIC and its variants Visual Basic and VB.NET are the only programming languages I know of that treat the end of line character as a statement terminator (I'm excluding batch files and command scripts from the domain of programming languages). I'm curious: is there any other language that uses this convention, or does BASIC stand alone...

Is anyone writing BASIC using a non-Microsoft implementation?

These days, generally when someone references BASIC they are asking about a Microsoft implementation - either VB.NET or VB6. Are there any dialects/versions of BASIC still actively used outside of the Microsoft implementations? ...

Is there a BASIC dialect which uses "==" as the comparison operator?

Anyone who grew up on BASIC, and later switched to another language, had a real difficulty getting used to "(a == b)" rather than "(a = b)" to test for equality. Is there a dialect of BASIC which uses the "==" operator for comparisons rather than overloading "=" for assignments and comparisons? Or - and maybe this is stretching it - is ...