yang-le / simple

Automatically exported from code.google.com/p/simple
0 stars 0 forks source link

Wrong Default value of Strings #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
According to the language report the default value of variables of type 
String is "". Below you find a program which defines a variable text As 
String. In the Initialize event I set the content of a text vield to text 
& "ok".

I expected to see the text "ok" upon start in the text field.

However, execution shows the text "nullok" in the text field.

Dominik

Dim text As String

Event Test.Initialize()
    t.Text = text & "ok"
End Event

$Properties
$Source $Form
$Define Test $As Form
Layout = 1
Layout.Orientation = 1
$Define t $As TextBox
Width = Component.LENGTH_FILL_PARENT
$End $Define
$End $Define
$End $Properties

Original issue reported on code.google.com by dominik....@gmail.com on 6 Aug 2009 at 1:00

GoogleCodeExporter commented 9 years ago

Original comment by simpleco...@gmail.com on 13 Aug 2009 at 10:19