Skip to main content
guest
Join | Help | Sign In
Liberty BASIC Programmer's Encyc Home
guest| Join | Help | Sign In
Liberty BASIC Programmer's Encyc
  • Wiki Home
  • Recent Changes
  • Pages and Files
  • Members

Home

General Tutorials
Advanced Tutorials
GUI Programming
Graphics and Games
Strings and Text
Numbers and Math
Using Files
Windows API
Communications
Programmer's Tools

Articles by Date
FAQs
Rosetta Code
General Articles
Newsletters Contents

Table of Contents
Demos

Submit Articles
TOS and License

0401

Edit 4 …
  • 1 Tags
    • tutorials
  • Notify
  • RSS
  • Backlinks
  • Source
  • Print
  • Export (PDF)

Change 0 of 0

Older Version Newer Version

harmonv harmonv Oct 4, 2007 - "Added info about variable types, names and a summary table."

Review Changes
Lesson Map | Next > Numbers

Types of Variables


Objective: Identify In the Define Variables lesson we learned Liberty BASIC has two types of variables: numbers and strings . If the last character of the variable types by their names Plan: List name is a dollar sign $ , it holds a string. If it does not have a $ on the end, it holds a number. What could be easier?

A variable types. Then for each type, give naming rule, show several examples. Give name can be letters and numbers but the first character must be a letter. FirstName$, FavoriteFilmNo5$, Address2$ store strings. Total, price12, and count3 hold numbers.

In these next few lessons we will be learning much more about them ... and the power they possess.

Here is a summary table of types and names. names
Cookbook$
string
begins with letter, end with $
Temperature
number
begins with letter, no $ on end
rainbow
number
begins with letter, no $ on end
snowflake$
string
begins with letter, ends with $
snow%
illegal
percent (%) can not be in name
37acorns
illegal
begins with a number


Lesson Map | Next > Numbers
Help · About · Pricing · Privacy · Terms · Support · Upgrade
Contributions to https://lbpe.wikispaces.com/ are licensed under a Custom License.
Portions not contributed by visitors are Copyright 2018 Tangient LLC
TES: The largest network of teachers in the world
Turn off "Getting Started"
  1. Home
  2. ...
Loading...