Problem with placement of #DQ$ ?
Problem with placement of #DQ$ ?
Hello & Thanks ;
Probs with placement of #DQ$ ?
#DQ$ = Chr(34) ; DoubleQuote
Sorry to say , I am having a problem with placement of #DQ$ .
I want to put this
<div-div style="order: 1;"1</div-div>
into a variable named div-div$
Thanks
Probs with placement of #DQ$ ?
#DQ$ = Chr(34) ; DoubleQuote
Sorry to say , I am having a problem with placement of #DQ$ .
I want to put this
<div-div style="order: 1;"1</div-div>
into a variable named div-div$
Thanks
vmars.us Win11 x64 , Martin Guitar 000-16 (1995)
"All things in moderation , except for love and forgiveness."
"All things in moderation , except for love and forgiveness."
Re: Problem with placement of #DQ$ ?
Code: Select all
div$ = ~"<div-div style=\"order: 1;\"1</div-div>"
sorry for my bad english
Re: Problem with placement of #DQ$ ?
I think It's a bug
Try:
And you get error
Try:
Code: Select all
div-div$="<div-div style="+#DQ$+"order: 1;"+#DQ$+"1</div-div>"
Debug div-div$
Re: Problem with placement of #DQ$ ?
I think this is a syntax error, you cannot assign this wayCaronte3D wrote:I think It's a bug
Try:
And you get errorCode: Select all
div-div$="<div-div style="+#DQ$+"order: 1;"+#DQ$+"1</div-div>" Debug div-div$
div-div$=...
Re: Problem with placement of #DQ$ ?
Cannot have dashes in variable names. Rename to underscorevmars316 wrote:Hello & Thanks ;
Probs with placement of #DQ$ ?
#DQ$ = Chr(34) ; DoubleQuote
Sorry to say , I am having a problem with placement of #DQ$ .
I want to put this
<div-div style="order: 1;"1</div-div>
into a variable named div-div$
Thanks
Re: Problem with placement of #DQ$ ?
Oops! You're right
Re: Problem with placement of #DQ$ ?
Thanks Folks ;
Both of these work :
div_div$ = ~"<div_div style=\"order: 1;\"1</div-div>"
div_div2$="<div-div style="+#DQ$+"order: 1;"+#DQ$+"1</div-div>"
Btw: Where can I read up on ~ ?
Thanks
Both of these work :
div_div$ = ~"<div_div style=\"order: 1;\"1</div-div>"
div_div2$="<div-div style="+#DQ$+"order: 1;"+#DQ$+"1</div-div>"
Btw: Where can I read up on ~ ?
Thanks
vmars.us Win11 x64 , Martin Guitar 000-16 (1995)
"All things in moderation , except for love and forgiveness."
"All things in moderation , except for love and forgiveness."
Re: Problem with placement of #DQ$ ?
https://www.purebasic.com/documentation ... rules.htmlvmars316 wrote:Btw: Where can I read up on ~ ?
https://www.purebasic.com/documentation ... tring.html
https://www.purebasic.com/documentation ... tring.html
sorry for my bad english
Re: Problem with placement of #DQ$ ?
Small note: If this is supposed to be XML, then it is not valid (even with the correctly set quotation marks).vmars316 wrote:Both of these work :Code: Select all
div_div$ = ~"<div_div style=\"order: 1;\"1</div-div>" div_div2$="<div-div style="+#DQ$+"order: 1;"+#DQ$+"1</div-div>"
Hygge
Re: Problem with placement of #DQ$ ?
Double quote is already defined
Code: Select all
Debug #DQUOTE$
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Re: Problem with placement of #DQ$ ?
Thanks ,Kiffi wrote: Small note: If this is supposed to be XML, then it is not valid (even with the correctly set quotation marks).
no I am writing a HtmlCssGrid-Maker straight Html .
I will Post source when I've finished .
vmars.us Win11 x64 , Martin Guitar 000-16 (1995)
"All things in moderation , except for love and forgiveness."
"All things in moderation , except for love and forgiveness."
Re: Problem with placement of #DQ$ ?
Code: Select all
div$ = ~"<div-div style=\"order: 1;\">1</div-div>"