Hi
I am having a strange problem with a structure and fixed string:
in the structure definition i have:
structure gamedefinitionf ile
:
<VBFixedString( 20)Dim namegame As String
:
end structure
form code:
'in my code, i open the file (which may not exist)
Dim gamedef As gamedefinitionf ile
FileOpen(fileno , gamedeffile, OpenMode.Random , OpenAccess.Read Write,
OpenShare.Share d, reclen)
FileGet(fileno, gamedef, 1)
If gamedef.namegam e = "" Then
' problem is this never seems to get executed, ie it is never recognised as
null. But when i use a stop statement to check the value it shows as ""
end if
i have tried setting gamedef.namegam e = "" before the fileget to no effect
i have tried trim(gamedef.na megame) = "" to no effect
I am having a strange problem with a structure and fixed string:
in the structure definition i have:
structure gamedefinitionf ile
:
<VBFixedString( 20)Dim namegame As String
:
end structure
form code:
'in my code, i open the file (which may not exist)
Dim gamedef As gamedefinitionf ile
FileOpen(fileno , gamedeffile, OpenMode.Random , OpenAccess.Read Write,
OpenShare.Share d, reclen)
FileGet(fileno, gamedef, 1)
If gamedef.namegam e = "" Then
' problem is this never seems to get executed, ie it is never recognised as
null. But when i use a stop statement to check the value it shows as ""
end if
i have tried setting gamedef.namegam e = "" before the fileget to no effect
i have tried trim(gamedef.na megame) = "" to no effect
Comment