Extract text strings.

About Monkey 2 Forums General Programming Discussion Extract text strings.

This topic contains 2 replies, has 2 voices, and was last updated by  Yue 3 months, 1 week ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #13916

    Yue
    Participant

    Hi, I’m drawing on your experience to resolve an issue I have.

    I have the following string from a Start file.

    This text string is saved in the ini file by my game launcher, and aims to set the screen width and its respective height. The truth is I’m stuck and I don’t know how to pull out the numbers just to store them in two respective variables called “Wide Screen” and another one called “High Screen”.

    These variables have to be processed by Blitz3D for the Graphics3D command.

    I appreciate any possible help.

    #13926

    dominique95
    Participant

    Hello,
    Assuming you read  your file line by line in the txt$ variable.
    Tested in BlitzPlus, should work in Blitz3D too

    #13929

    Yue
    Participant

    @dominique95

     

    Thanks You!! 🙂

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.