basic

Is there a simple, easy, BASIC for beginners? (What happened to VB 2.0?) [closed]

北城余情 提交于 2019-12-03 13:41:47
Closed. This question is off-topic. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it's on-topic for Stack Overflow. My son asked if there was an easy language to pick up and do some foundational programming with. I thought QuickBasic at first, but then thought I should just show him VB. I downloaded Visual Basic Express 2008, but I am completely lost. Where is the object toolbar? Where is the form? Where is the property pane? Instead it's Business Intelligence and Analysis Services. Where's the simply Beginner's All purpose Symbolic

Python: Is there an equivalent of mid, right, and left from BASIC?

回眸只為那壹抹淺笑 提交于 2019-12-02 18:57:08
I want to do something like this: >>> mystring = "foo" >>> print(mid(mystring)) Help! slices to the rescue :) def left(s, amount): return s[:amount] def right(s, amount): return s[-amount:] def mid(s, offset, amount): return s[offset:offset+amount] If I remember my QBasic, right, left and mid do something like this: >>> s = '123456789' >>> s[-2:] '89' >>> s[:2] '12' >>> s[4:6] '56' http://www.angelfire.com/scifi/nightcode/prglang/qbasic/function/strings/left_right.html Thanks Andy W I found that the mid() did not quite work as I expected and I modified as follows: def mid(s, offset, amount):

Unhandled Exception when trying to add registry key

爱⌒轻易说出口 提交于 2019-12-02 09:50:39
When I use the following code My.Computer.Registry.LocalMachine.OpenSubKey("SOFTWARE\Microsoft\Windows\CurrentVersion\Run", True).SetValue(Application.ProductName, Application.ExecutablePath) to add a registry key to make my program startup automatically, it works on my system but on everyone who I have sent it to gets an "Unhandled Exception" message saying that access is denied. I was wondering if there is a solution to this. Thanks You get "Access denied" because you are required to run your app with administrative privileges if you want to write to the HKEY_LOCAL_MACHINE key. You can force

FREEBASIC 编译可被python调用的dll函数示例

自古美人都是妖i 提交于 2019-12-02 08:23:16
<转帖子请注明出处> 程序员的两极分化: ①软件专业性加强。许多的软件都要做软件工程,要团队进行合作开发,单打独斗已经无法开发出功能很强的软件;这类程序员对某个编程软件要非常精通,但对其他的软件 ②个人编制一些对工作有帮助的软件。这类软件并不要求很高的安全性。方便快捷是它的特点。这类程序员所以的编程语言很多,很多语言都懂一些,但不专精。 Python : Python 在工作中用的很多:扩展库较多、语法简洁、可以边用边写脚本、可以非常的方便。 但是有一个问题很让人困扰:要进行大规模的数据计算的时候,运行时间太长让人难以忍受。 网上查找了很多的资料,有很多的加快python的方法: + pysco: 好像速度提升不错,但是2.7以上不再支持,主要原因是它太占用资源,所以python社区把它给放弃了; + pypy :另外再搞一个python? NO! 很明显,我要放弃很多CPYTHON中支持的资源。 +cython: 这货基本就是C语言语法、python语法的综合体。同时考虑两种语言,写程序的时候是不是更容易出错?放弃。 Freebasic : 这个是让我兴奋而有伤感的语言。 兴奋的理由:FreeBasic支持东西太多了:跨平台、语法基本同传统的BASIC,不存在语言上的学习难度、支持指针、支持类(简易)、动态库dll,so编写、编译速度快、运行速度快(GCC相当)、帮助文件非常全面

Visual basic and Json.net Web request

爷,独闯天下 提交于 2019-12-02 03:16:53
Basically what im trying to do is make a program that list game information for league of legends.. using there API to extract data. how this works is you Search there username and it returns an integer linked to that account, you then use that integer to search for all of the information for that account, EG account level, wins, losses, etc. I've run into a problem i can't seem to figure out.. Please not that I'm very new to Json.net so have little experience about working with it.. Below is how the search for the user ID is found, The First section is the Username Minus Any spaces in the

How to use LibreOffice functions into Basic?

夙愿已清 提交于 2019-12-01 21:38:17
I've asked here about the good way to do so. Now I'm trying the following code found here , and get some unexpected errors. I suppose I'm not using it the correct way. Any idea ? Sub Main Dim aResult Dim aFunc Dim oRange aFunc = GetProcessServiceManager().createInstance("com.sun.star.sheet.FunctionAccess") aResult = aFunc.callFunction("SUM", Array(1, 2, 3)) ' ---- Works OK Print aResult aResult = aFunc.callFunction("MDETERM", Array(2, 5, 8)) ' ---- IllegalArgumentException Print aResult oRange = ThisComponent.sheets(0).getcellrangebyname("B4:B6") aResult = aFunc.callFunction("ZTEST", Array

How can I automatically populate the VBA Editor with line numbers?

五迷三道 提交于 2019-12-01 20:51:48
问题 I want to have line numbers in my VBA code for debugging reasons. That will allow me to know where a particular error occurred. Is there an automatic feature for this (such as an option in settings)? Or do I need to write my own macro? If I need to write my own macro to accomplish this task, how would I go about doing such a thing? 回答1: You don't want line numbers. Not for "debugging reasons", not for anything. Line numbers are deprecated for a reason: they're a relic of an ancient time

username and password verification vb.net

ぐ巨炮叔叔 提交于 2019-12-01 11:42:23
My program below checks if the userName and the password is in the database( written in visual basic and uses Access database). The program works however, when I type in the userName or password in a different case it still works. For example, if my database has the userName as "john" and the password as "johnspassword", my program accepts the username as "JOHN" and password as "JOHNSPASSWORD". how do i resolve this problem? Dim con As New OleDbConnection("Provider=Microsoft.jet.oledb.4.0;data source=C:\Users\jacob\Desktop\MS Office\project.mdb") Dim cmd As OleDbCommand = New OleDbCommand(

How can I exit Microsoft GW-BASIC, IBM BASICA, or other similar old dialects of BASIC?

佐手、 提交于 2019-12-01 06:00:45
Microsoft BASIC , GW-BASIC and BASICA all use a prompt that looks like this: I can't figure out how to exit any of these. Typing END does not exit them. EXIT , QUIT , Q , Ctrl+C , and everything else that I can think of also does not work. I'm sure there's a way to do this. I can't imagine everyone who used BASICA on DOS had to restart their machine every single time they wanted to exit the development environment. So, how do I exit from the old BASIC editor prompt? Jeff Zeitlin GWBASIC and its clones (e.g., IBM's BASIC and BASICA) exited to the DOS prompt with the command system . Although

How can I exit Microsoft GW-BASIC, IBM BASICA, or other similar old dialects of BASIC?

江枫思渺然 提交于 2019-12-01 02:25:40
问题 Microsoft BASIC, GW-BASIC and BASICA all use a prompt that looks like this: I can't figure out how to exit any of these. Typing END does not exit them. EXIT , QUIT , Q , Ctrl+C , and everything else that I can think of also does not work. I'm sure there's a way to do this. I can't imagine everyone who used BASICA on DOS had to restart their machine every single time they wanted to exit the development environment. So, how do I exit from the old BASIC editor prompt? 回答1: GWBASIC and its clones