Imports
System
Microsoft.SmallBasic.Library
System.Threading
System.IO
<SmallBasicType()> _
Public
Module
FirstModule
Function
ShowMessage(
ByVal
MsgTxt
As
Primitive)
Primitive
MsgBox(MsgTxt.ToString)
End
To create more functions in the FirstModule, all you have to do is add more functions. If you need to get any variables from the user, just separate the ByVal YOURVARIABLE with commas. If you need to return a function, just put return before it like:
NetOpen()
Return
My.Computer.Network.IsAvailable
Richard Mueller edited Revision 24. Comment: Removed tags "small", "visual", "basic", and "Has Comments". Changed tags "how" and "to" to "How To".
Nonki Takahashi edited Revision 22. Comment: link
Ed Price - MSFT edited Revision 21. Comment: Removed the rest of the bold from Step 2
Ed Price - MSFT edited Revision 20. Comment: Removing the bold from the "Step 2" section
Ed Price - MSFT edited Revision 15. Comment: Retitling for consistency
Ed Price - MSFT edited Revision 9. Comment: White space tweaks
Ed Price - MSFT edited Revision 8. Comment: Adding TOC and tags
Patris_70 edited Revision 2. Comment: added en-US title
Step 2: (10) - I think only MyFirstExtension.dll and MyFirstExtension.xml are needed. But My MyFirstExtension.pdb is not needed.
There is a good article "Extending Small Basic" in Small Basic Blog. blogs.msdn.com/.../extending-small-basic.aspx
Hey, nice tutorial. But I stuck at Step 2, Part 5.
I ever get this ERROR if I try to change the Framework...
[IMG]i50.tinypic.com/10n7plf.jpg[/IMG]
But I saved the projekt!
@Timo So: Can you please translate that to English?
Here is the translation: The current project must be saved before you change the target framework.
The problem is that I saved the program around 50 times before I tried to do this. I did not change anything after the last save.
I have added SmallBasicLibrary.dll as a resource, but it still doesn't recognise "Imports Microsoft.SmallBasic.Library" and "<SmallBasicType()> _"