Search the web
Sign In
New User? Sign Up
nsbasic-desktop · Forum for NS Basic/Desktop users
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 3028 - 3057 of 3191   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
3028
Do you have modules? If so, those are appended after the generated code....
George Henne
ghenne
Offline Send Email
Jul 1, 2009
12:44 pm
3029
I have 1 module with (before I get through) many subs. The text file (I use ultra edit, not notepad) tells me the end of generated code and when the module...
cschuchert
Offline Send Email
Jul 1, 2009
2:29 pm
3030
I have a menu item with several selections. Whenever I try to code on the selections, it throws a syntax error at the 'Sub' line. For example, a selection...
cschuchert
Offline Send Email
Jul 1, 2009
4:41 pm
3031
Never mind. I found the problem. I had a sub within a sub. I'll try to be more thorough before I post....
cschuchert
Offline Send Email
Jul 1, 2009
5:07 pm
3032
I've coded some SUBs and forgot to DIM the variables... and the SUBs worked fine. Therefore the questions: Why DIM the variables? What does it accomplish? What...
tlclarke1414
Offline Send Email
Jul 1, 2009
11:45 pm
3033
George In a similar fashion, I would like to see the source for modules handled differently. Currently, in V3, a run time error just give the line number. If...
cedarlakebuzzards
cedarlakebuz...
Offline Send Email
Jul 2, 2009
3:04 am
3034
... Several reasons. 1) NSBasic Desktop uses VBScript as the 'engine'. All VBScript variables are treated as variants and as such, require the maximum allowed...
Tim Markoski
tmarkoski1122
Offline Send Email
Jul 2, 2009
3:06 am
3035
If you add OPTION EXPLICIT as the first line of your program, the compiler will check to make sure all variables are declared when the program starts running....
George Henne
ghenne
Offline Send Email
Jul 2, 2009
10:01 am
3036
It's a good idea, but unfortunately not possible. The error messages are created by the VBScript runtime engine, not our code. Before we pass your program to...
George Henne
ghenne
Offline Send Email
Jul 2, 2009
10:03 am
3037
Hi, I thought it a good idea too. The error dialog box includes NSBasic in the title, so I assume that the dialog is generated in the IDE software. Therefore,...
Andrew
andrewmarkth...
Offline Send Email
Jul 2, 2009
1:47 pm
3038
Nice thinking - but the error message actually comes from the engine itself, and does not come through the IDE. We can't intercept it....
George Henne
ghenne
Offline Send Email
Jul 2, 2009
1:57 pm
3039
Hi, Oh well, that's my useful suggestion for the day out of the window ;-) However, can I add one more suggestion that could work in a similar way? Perhaps a...
Andrew
andrewmarkth...
Offline Send Email
Jul 2, 2009
3:53 pm
3040
That could work. We'll have to give it a try... ... handled ... with the ... own, or...
George Henne
ghenne
Offline Send Email
Jul 2, 2009
4:33 pm
3041
When I run the code below, I get an error saying that x (in line 7) is undefined. How do I make the value of x available to Subs when the 'system' (in this...
tlclarke1414
Offline Send Email
Jul 2, 2009
5:29 pm
3042
What is the difference between CALL SUB One A, B ... ... SUB One (x, y) whatever... and CALL SUB One A, B ... ... SUB One (BYVAL x, BYVAL y) whatever... If I...
tlclarke1414
Offline Send Email
Jul 2, 2009
5:52 pm
3043
Here's an article on this topic from one of the authors of VBScript: <http://blogs.msdn.com/ericlippert/archive/2003/09/15/53005.aspx> George Henne NS BASIC...
George Henne
ghenne
Offline Send Email
Jul 2, 2009
6:04 pm
3044
X is DIMmed within Form1_Load - it is not defined elsewhere. Move the Dim X after OPTION EXPLICIT and you will be fine....
George Henne
ghenne
Offline Send Email
Jul 2, 2009
6:06 pm
3045
In terms of NSBasic Desktop, does this mean: If I use ByRef, the address of the variable is passed AND I can change the variable... If I use ByVal, the address...
tlclarke1414
Offline Send Email
Jul 2, 2009
6:24 pm
3046
So a DIM 'outside' of a SUB (i.e., after the option explicit but before the first load form) makes the variable a 'global' variable, available to all SUBs, ...
tlclarke1414
Offline Send Email
Jul 2, 2009
6:29 pm
3047
Correct....
George Henne
ghenne
Offline Send Email
Jul 2, 2009
6:44 pm
3048
A couple of questions: ShellExecute "open","notepad.exe" ShellExecute "open","c:\dosgood\qcd.exe" ShellExecute "print","c:\simpletext\sample.TXT" ShellExecute...
cschuchert
Offline Send Email
Jul 2, 2009
8:29 pm
3049
Hello, the 3rd statement should work, if the file "sample.txt" really exists in C:\simpletext and if there's an application associated with the ending ".TXT"....
Thomas Gruber
computerhusky
Offline Send Email
Jul 2, 2009
9:20 pm
3050
Hello, somewhat late, but perhaps still useful despite the other useful comments about DIM statements: "Option Explicit" at the beginning of your program, and...
Thomas Gruber
computerhusky
Offline Send Email
Jul 2, 2009
9:25 pm
3051
After "Option Explicit", but before any SUB, I have: Dim aHour (11) In "SUB NewRide_Load", I have: aHour =...
tlclarke1414
Offline Send Email
Jul 2, 2009
9:52 pm
3052
Remove the "(11)" from your dim statement (it should read "Dim aHour"). The subsequent array statement takes care of establishing the number of array elements...
skysensor
Online Now Send Email
Jul 2, 2009
10:25 pm
3053
Thank you Thomas. The problem must have been that I had 'ultraedit' a text editor I have used for years associated with 'txt' files. Although that should not...
cschuchert
Offline Send Email
Jul 2, 2009
10:37 pm
3054
Thanks, Mark... that solved the problem. TLC...
Tom Clarke
tlclarke1414
Offline Send Email
Jul 3, 2009
12:32 am
3055
I prefer not to have a comma after thousands, etc. in the output of numbers. e.g. 12345 vs 12,345. In order to get decimals right, I use the formatnumber...
cschuchert
Offline Send Email
Jul 3, 2009
6:57 pm
3056
Jim: The parensfornegative parameter is apparently "twitchy"...must be a "feature". It doesn't like a boolean true (1) value, though on my machine, using -1...
skysensor
Online Now Send Email
Jul 4, 2009
1:13 am
3057
Yes, Mark, that works. I also googled vbscipt for "formatnumber" and found essentially what you already knew. My 'split' function was really choking when I...
cschuchert
Offline Send Email
Jul 4, 2009
2:24 am
Messages 3028 - 3057 of 3191   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help