PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

VB to eVB stuff.

I have a game I'm baseing off a VB game, and I need to know how to convert this VB 6.0 code for a module into eVB code. The eVB compiler won't recognize this code, which deals with the Enum and Type functions. I can't seem to find any info on the Enum and Type functions in the eVB help files. Please help.

Code:

Option Explicit

Enum WeaponEnum
FIST
CLUB
KNIFE
SWORD
End Enum

Type StatsType
Hitpoints As Integer
Strength As Integer
Pie As Integer
Gold As Integer
Spells As Integer
Serums As Integer
Brew As Boolean
Room As Integer
Weapon As Integer
PieMoveCount As Integer
CastingSpell As Boolean
End Type

Public Stats As StatsType

eVB doest't support TYPEs... :(

I read an article sort of about a similar problem:
http://www.commedia.pt/ce/udts1.html

I don't know if it would be any help to you, though.
Thanks for the link. They have a good work-a-round I can try. But what about the Enum function?