a$ = "text "text" text " Looking for solution!

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by teachco.

I'm looking for the esc-sequence in PureBasic to solve the following problem:

a$ = "text ?"text?" text"

Which are the correct characters instead of the ? to get no syntax problems?

Thanks.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Pupil.
I'm looking for the esc-sequence in PureBasic to solve the following problem:

a$ = "text ?"text?" text"

Which are the correct characters instead of the ? to get no syntax problems?

Thanks.
To my knowledge there is no esc-sequence in PB so you have to settle for this instead:

Code: Select all

a$ = "text "+Chr(34)+"text"+Chr(34)+" text"
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by teachco.

Thank you. It's working fine.
Post Reply