J
John
Hi
I am having a strange problem with a structure and fixed string:
in the structure definition i have:
structure gamedefinitionfile
:
<VBFixedString(20)> Dim namegame As String
:
end structure
form code:
'in my code, i open the file (which may not exist)
Dim gamedef As gamedefinitionfile
FileOpen(fileno, gamedeffile, OpenMode.Random, OpenAccess.ReadWrite,
OpenShare.Shared, reclen)
FileGet(fileno, gamedef, 1)
If gamedef.namegame = "" 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.namegame = "" before the fileget to no effect
i have tried trim(gamedef.namegame) = "" to no effect
I am having a strange problem with a structure and fixed string:
in the structure definition i have:
structure gamedefinitionfile
:
<VBFixedString(20)> Dim namegame As String
:
end structure
form code:
'in my code, i open the file (which may not exist)
Dim gamedef As gamedefinitionfile
FileOpen(fileno, gamedeffile, OpenMode.Random, OpenAccess.ReadWrite,
OpenShare.Shared, reclen)
FileGet(fileno, gamedef, 1)
If gamedef.namegame = "" 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.namegame = "" before the fileget to no effect
i have tried trim(gamedef.namegame) = "" to no effect