5.1   sharing code
Upcoming SlideShare
Loading in...5
×
 

5.1 sharing code

on

  • 1,137 views

 

Statistics

Views

Total Views
1,137
Slideshare-icon Views on SlideShare
1,137
Embed Views
0

Actions

Likes
0
Downloads
11
Comments
0

0 Embeds 0

No embeds

Accessibility

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • Code:GraphicsWindow.Title = "Fun with the Turtle"GraphicsWindow.Height = 300GraphicsWindow.Width = 500Turtle.Show()Turtle.Speed = 10Turtle.X = 150Turtle.Y = 150For i = 0 To 200 Step 5 GraphicsWindow.PenColor = GraphicsWindow.GetRandomColor() Turtle.Move(i) Turtle.Turn(90)EndForTurtle.PenUp()Turtle.Move(260)Turtle.Turn(60)Turtle.Move(120)Turtle.PenDown()For i = 0 To 200 Step 5 GraphicsWindow.PenColor = GraphicsWindow.GetRandomColor()Turtle.Move(i) Turtle.Turn(120)EndFor
  • Let’s explore how you can share your Small Basic programs. After creating a program, you can share the code by clicking the Publish button. You can specify appropriate details for your program such as name, description, and the category for your program. Your program is now available online. You can share your program with friends by sharing the unique ID assigned to your program.
  • Before you can access your published program online, Silverlight must be installed within your Web browser.
  • Solution:By clicking the Publish button on the toolbar.By clicking the Import button and specifying the unique program ID.By clicking the Graduate button on the toolbar.

5.1   sharing code 5.1 sharing code Presentation Transcript

  • Microsoft® Small Basic
    Sharing Code
    Estimated time to complete this lesson: 1 hour
  • Sharing Code
    In this lesson, you will learn to:
    Share your Small Basic programs.
    Download and run Small Basic programs.
    Publish Small Basic programs for the Microsoft Silverlight ® browser plug-in.
    Convert your Small Basic program into an equivalent program in the Microsoft Visual Basic® development system.
  • Sharing Code
    Now that you have explored Small Basic to create fun games and applications, it is time to share your creations with your friends and colleagues.
    Small Basic provides you the capability to share your programs by uploading your code to the Internet.
    To do so, you can use the Publish button on the toolbar.
  • Uploading The Code
    When you click the Publish button, your program is published instantly!
    To access your program in a different Small Basic environment, you can use the unique ID that is assigned to your program. You can also view your program online by accessing the displayed URL.
    Small Basic generates and displays a unique ID for your program. Using this ID, you can share your program with others.
    Additionally, you can assign a suitable title to your program, provide a brief description, and define the category for your program.
  • Downloading a Program
    Now, let’s explore how others can access your published program within the Small Basic environment.
    To access your published program in Small Basic, you click the Import button on the toolbar.
    You must then specify the unique program ID in the displayed box and then click OK.
    The particular program is imported from the Internet and displayed in your Small Basic environment.
  • Running a Program
    Once you import a program in your Small Basic environment, you can run the program. Alternatively, you can edit the code, if required.
    output
    You can also save the imported program, by clicking the Save button on the toolbar.
    Click the button on the toolbar.
  • Accessing Your Program Online
    Moreover, you can access your published program online!
    When you publish a program, the program gets uploaded to the Small Basic Web site. By browsing to the Web site and specifying the unique program ID, you can access your program online, anytime, within a Web browser supporting Silverlight. So have fun creating Silverlight applications and games right from within Small Basic!
    The Web page also displays the code sample for your program below the program output.
  • Embedding your Program Online
    As you know, you can view your published programs on the Small Basic website from within a web browser that supports Silverlight. Well, Small Basic has more to offer!
    This enables you to host your published program on your own website or blog by simply copying the code into your website code. Simple, isn’t it?
    You can simply embed your program within your website. The HTML code exclusively for your programis provided on the Small Basic website.
  • Converting Small Basic Programs to Visual Basic Programs
    Using the Small Basic environment, you can also convert your Small Basic program into an equivalent Visual Basic program.
    A friendly wizard asks you to specify the location where you want to save your converted program.
    Consider a Small Basic program that you have just written or downloaded. To convert this program to a Visual Basic program, you simply have to click the Graduate button on the toolbar.
  • Converting Small Basic Programs to Visual Basic Programs
    Otherwise, it displays the following message:
    If Visual Basic is installed on your computer, your converted program opens in Visual Basicwhen you click Continue.
  • Let’s Summarize…
    Congratulations! Now you know how to:
    Share your Small Basic programs.
    Download and run Small Basic programs.
    Publish Small Basic programs for Silverlight.
    Convert your Small Basic program into an equivalent Visual Basic program.
  • It’s Time to Apply Your Learning…
    Now that you know some facts about Small Basic, it is time to check your learning. Answer the following questions:
    • How can you share your Small Basic program online?
    • How can you access your published program in another Small Basic environment?
    • How can you convert your Small Basic program to Visual Basic?