I have a couple of textboxes, buttons and a listbox on my form. When refer to the listbox "lstABC", for example lstABC.AddItem, I get 'Variable is undefined...
I use the toolbox all the time to add objects without any problems. Your issue is that you are trying to use the control before it has been defined. Put...
There is already a pulldown that shows all the subs and functions. Bookmarks are an interesting idea, but I can see some technical hurdles. You could put a...
I must have been smoking some good stuff to miss this one. LOL Bob ... From: George Henne To: nsbasic-ce@yahoogroups.com Sent: Monday, August 01, 2005 10:44 AM...
Got that, thanks. My confusion is coming in, in that I am used to the form load event sub being automatically added in VB6 (I know this isn't VB6) and having...
How do I use the "picture" property of a form? I'd like to add a picture as a background on a splash screen, and I can't find anything in the documentation...
The picture property of a form works just like the picture property of a PictureBox. Save your program as a .txt file and open it in NotePad - you'll see it...
Ah, gotcha. Thanks. Bob ... From: nsbasic-ce@yahoogroups.com [mailto:nsbasic-ce@yahoogroups.com]On Behalf Of George Henne Sent: Monday, August 01, 2005 8:46...
That is correct for the most part. Some controls will provide you with the wrapper for a default event if you double click on them. For instance, if you...
That is most helpful Styskul, thank you. I can get to grips with adoce and comms and seemingly more complex things because I can just keep plugging away until...
I have worked with several basic-oriented products, but my strongest background is in VB, and I can relate to the potential frustrations in terms of...
How do I correctly name and use objects so that I can use the same code in a subroutine for more than one object? I have simplified my problem below. I have...
Maybe add at the beginning somewhere - "dim chart(3)"? Without the quotations. Bob ... From: michael_newett To: nsbasic-ce@yahoogroups.com Sent: Monday, August...
Ignore my earlier suggestions and go with Styshul's. Much better and more professional. Bob ... From: Styskul To: nsbasic-ce@yahoogroups.com Sent: Monday,...
One thing I might add is this.. Check the docs under function. By creating a function instead of a sub, you can carry a value with you that represents an...
What might the technical hurdles be? Seems to me like all you need to do is save the current line number/character number in a variable when the menu item...
Bob, can you elaborate on this? Why couldn't he do the same thing with a sub? All a function does differently is allow you to return a value, whereas it...
Direct quote from manual: "FUNCTION declares a procedure, procedurename, that executes statements, with an arglist as parameters, with an optiional return...
Hi all; does anyone have the code (in PBASIC/BASIC) to open the IrDA port of for a Toshiba PDA or any ideas where to find it? i need it because i have build an...
I guess I was just wondering about using a function versus a sub, but it really doesn't matter. If you wanted to make my code more generic, you could do...
Hi Styskul: That's correct. You can specify individually which objects the FUNCTION code will be applied too. Also a FUNCTION can be written to do exactly what...
I think we're arguing... I mean politely discussing :)... semantics here. You can do the same thing with a SUB: "SUB declares a procedure, procdurename, that...
Exactly. There is no right or wrong way cause the end user of the application does not care how efficient in the sense of a SUB or FUNCTION was used. Also if...
Hi guys, thanks for your comments. No, I havent written it yet - still deciding on best way. From your comments, I found the code below the easiest: AddObject...
Hi Michael: Others may disagree but still prefer a FUNCTION. ... plot chart1 plot chart2 plot chart3 Function Plot(chart) chart.drawcircle VarX, VarY, VbRed ...