Syntax error

Questions regarding syntax

Syntax error

Postby Henning » Mon Nov 01, 2010 3:04 pm

Hi

syntax error in line 13 near pos 3 in frm_BedCalib.kbasic_form

In module1.kbasic_module:
Public Const msgBedSensRead As Byte = 32
....
Type T_Msg
tType As Byte
ID As Integer
tSYSTEM As Byte
unit As Byte
port As Byte
tdata(7) As Byte
ReplyTo As Integer
crc As Integer
End Type
....
Public BS As T_Msg

In frm_BedCalib.kbasic_form:
This is line 13 pos 3 is B in BS
BS.tType = msgBedSensRead

????

/Henning
Henning
 
Posts: 262
Joined: Mon Feb 09, 2009 12:03 am
Location: Sweden

Re: Syntax error

Postby Slowdown » Mon Nov 01, 2010 8:08 pm

Code is valid and working here.
as you did,
my form
Code: Select all
Private Sub Form_OnOpen()
  BS.tType = msgBedSensRead
  print (BS.tType)
End Sub

print shows 32
Regards
Slowdown for now i'm back
Slowdown
 
Posts: 347
Joined: Sat May 02, 2009 6:48 pm
Location: Netherlands

Re: Syntax error

Postby Henning » Mon Nov 01, 2010 9:13 pm

Thx Slowdown,

Then I guess it's the "error points to wrong code" syndrome, or that this has to to with 16000+ lines VB->KB porting project.

This is from the next to last Form/module added...

I can play some 3-4 games of Hearts while compiling ;)

/Henning
Henning
 
Posts: 262
Joined: Mon Feb 09, 2009 12:03 am
Location: Sweden

Re: Syntax error

Postby Slowdown » Tue Nov 02, 2010 8:28 pm

16000+ lines of VB code converting to KB whoeii :o
my biggest project was counting nearly 4800 lines of code and i thought, nahhh 8-)
Regards
Slowdown for now i'm back
Slowdown
 
Posts: 347
Joined: Sat May 02, 2009 6:48 pm
Location: Netherlands


Return to Coding Questions

cron