EditText missing text

rls456

Member
Licensed User
Longtime User
if you enter text into text edit it shows up in the edit but the following code happens

IF CatagoryEdit.Text = "" Then
Msgbox("You Must Enter an Item Name.","Missing Name")

MsgBox detects no text and pops up.

if you program some text
CatagoryEdit.text = "Main" it does not show up in edit but will show up in
MsgBox.

This happens on the 3rd activity.

Here is the create code
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Dim CatagoryBtn, ItemBtn As Button
Dim EditCatagory, EditItem As EditText
Dim ListView1 As ListView

End Sub

Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("EditList")
ListView1.Initialize("ListView1")
CatagoryBtn.Initialize("CatagoryBtn")
ItemBtn.Initialize("ItemBtn")
EditCatagory.Initialize("EditCatagory")
EditItem.Initialize("EditItem")

End Sub

any help
Thanks
 

bobsimoneau

Member
Licensed User
Longtime User
if you enter text into text edit it shows up in the edit but the following code happens

IF CatagoryEdit.Text = "" Then
Msgbox("You Must Enter an Item Name.","Missing Name")

MsgBox detects no text and pops up.

if you program some text
CatagoryEdit.text = "Main" it does not show up in edit but will show up in
MsgBox.

This happens on the 3rd activity.

Here is the create code
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Dim CatagoryBtn, ItemBtn As Button
Dim EditCatagory, EditItem As EditText
Dim ListView1 As ListView

End Sub

You speak of CatagoryEdit above put you Dim EditCatagory. Are they the same, just mistyped?
 
Upvote 0

rls456

Member
Licensed User
Longtime User
if you enter text into text edit it shows up in the edit but the following code happens

IF CatagoryEdit.Text = "" Then
Msgbox("You Must Enter an Item Name.","Missing Name")

MsgBox detects no text and pops up.

if you program some text
CatagoryEdit.text = "Main" it does not show up in edit but will show up in
MsgBox.

This happens on the 3rd activity.

Here is the create code
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Dim CatagoryBtn, ItemBtn As Button
Dim EditCatagory, EditItem As EditText
Dim ListView1 As ListView

End Sub

You speak of CatagoryEdit above put you Dim EditCatagory. Are they the same, just mistyped?

Sorry just mistyped the word should be EditCatagory
Thanks
 
Upvote 0
Top