|
|
Richard_Hor
Member
Reged: 04/17/08
Posts: 72
|
|
For example, Type.sbh has: Type person_record name As String gender As String End Type
DB_Util.sbh has: '$Include "Type.sbh" Declare Function Get_Person BasicLib "DB_Util" (name As String) As person_record Declare Sub Update_Person BasicLib "DB_Util" (person As person_record)
Person_Mod.sbh has: '$Include "Type.sbh" Declare Sub Update_Name BasicLib "Person_Mod" (person As person_record, newName As String)
Person_Mod.sbl has: '$Include "DB_Util.sbh" Sub Update_Name BasicLib "Data_Mod" (person As person_record, newName As String) person.name = newName Update_Person(person) End Sub
Test.rec has: '$Include "DB_Util.sbh" '$Include "Person_Mod.sbh"
Sub Main Dim person as person_record person = Get_Person("oldName") Update_Name(person, "newName") End Sub
When compiling Test.rec, an type redefinition error for person_record would be returned. How you guys think to fix this? Thanks.
|
|
0 registered and 3 anonymous users are browsing this forum.
Moderator: AJ, RSBarber
Print Topic
|
Forum Permissions
You cannot start new topics
You cannot reply to topics
HTML is disabled
UBBCode is enabled
|
Rating:
Topic views: 194
|
|
|
|
|
|
Powered by UBB.threads™ 6.5.5
|