GCBASIC - New functionality - Variable initialization

Veröffentlicht am: 01 Januar 1970
auf dem Kanal: Evan Venn
94
13

*Tutorial: Initialized Variable Declarations in GCBASIC*

This video demonstrates the new functionality introduced in **GCBASIC change 1543**, which allows assigning initial values directly in **DIM statements**. This enhancement makes it easier and more efficient to initialize variables, bits, arrays, and typed data at declaration time.

*Target device:* Any supported microcontroller (8‑bit PIC, AVR or LGT )

*What you’ll learn:*

How implicit typing works (e.g., `dim myVar = 10` defaults to Byte)
How to use explicit typing with initialization (e.g., `dim myvar2 as byte = 20`)
How to declare and initialize bit variables (`dim mybit as Bit = 1`)
How to use negative values with Integer and Long types (`dim myint as Integer = -1000`)
How to initialize floating‑point values for Single (`dim mysingle as Single = 3.14159`)
How to initialize strings (`dim mystring as string = "hello world"`)
How to initialize arrays (`dim test(5) = 1,2,3,4,5`)
How to declare variables *at a specific memory location*
How to create variables *aliased to another memory variable*

GCBASIC continues to make microcontroller programming simple, powerful, and flexible.

Enjoy!


Auf dieser Seite können Sie das Online-Video GCBASIC - New functionality - Variable initialization mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Evan Venn 01 Januar 1970 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 94 Mal angesehen und es wurde von 13 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!