I working on a service mod and having a problem with IsNumber.
I'll make this as short as possible to show what I doing. Other things were remove so as to just focus on the problem.
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
This works just fine in the Main Activity but not in the service mod I added.
I tried renaming the variable to test1 in all instances and that did not work either.
Any help is greatly appreciated.
Thnks,
Bryan
			
			I'll make this as short as possible to show what I doing. Other things were remove so as to just focus on the problem.
			
				B4X:
			
		
		
		Sub Process_Globals
       Dim test_1 As String
Sub Service_Create
       lc.SetVariableAndValue("test_1", "256")
Sub Service_Start (StartingIntent As Intent)
End Sub
Sub chknum
      Dim chkifnum As Int
          If IsNumber(test_1) Then         'this does not work for me.
          Msgbox("OK", "")
          End If
End SubThis works just fine in the Main Activity but not in the service mod I added.
I tried renaming the variable to test1 in all instances and that did not work either.
Any help is greatly appreciated.
Thnks,
Bryan
 
				 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		