Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Why is my char editor doin dis :I


Growlith1223
 Share

Recommended Posts

Im making a character editor, got it to load everything but a certain String

it loads everything fine but when it comes to that line, it acts like it was unable to read anything in the binary for that data.

The string it should be showing is "Newb" but it puts nothing into the textbox. when i save though, it literally creates a new line for the title. even though there already is data for the title. i have tried everything, i be stumped by this :I
Link to comment
Share on other sites

to read and write strings you need to declare their length like this

```
Dim Name As String * 30

```
thats why eo declares all its strings like that

```
Public Type TypeName
Name as String * NAME_LENGTH 'where NAME_LENGTH is a constant'
End Type

```

if you dont specify the length of the string the program wont know how many bytes to read/write
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...