Problem with placement of #DQ$ ?

Just starting out? Need help? Post your questions and find answers here.
vmars316
Enthusiast
Enthusiast
Posts: 474
Joined: Fri Jun 29, 2012 12:24 am
Contact:

Problem with placement of #DQ$ ?

Post by vmars316 »

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
vmars.us Win11 x64 , Martin Guitar 000-16 (1995)
"All things in moderation , except for love and forgiveness."
User avatar
Josh
Addict
Addict
Posts: 1183
Joined: Sat Feb 13, 2010 3:45 pm

Re: Problem with placement of #DQ$ ?

Post by Josh »

Code: Select all

div$ = ~"<div-div style=\"order: 1;\"1</div-div>"
sorry for my bad english
User avatar
Caronte3D
Addict
Addict
Posts: 1055
Joined: Fri Jan 22, 2016 5:33 pm
Location: Some Universe

Re: Problem with placement of #DQ$ ?

Post by Caronte3D »

I think It's a bug

Try:

Code: Select all

div-div$="<div-div style="+#DQ$+"order: 1;"+#DQ$+"1</div-div>"
Debug div-div$
And you get error
User avatar
Tenaja
Addict
Addict
Posts: 1949
Joined: Tue Nov 09, 2010 10:15 pm

Re: Problem with placement of #DQ$ ?

Post by Tenaja »

Caronte3D wrote:I think It's a bug

Try:

Code: Select all

div-div$="<div-div style="+#DQ$+"order: 1;"+#DQ$+"1</div-div>"
Debug div-div$
And you get error
I think this is a syntax error, you cannot assign this way
div-div$=...
User avatar
Tenaja
Addict
Addict
Posts: 1949
Joined: Tue Nov 09, 2010 10:15 pm

Re: Problem with placement of #DQ$ ?

Post by Tenaja »

vmars316 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
Cannot have dashes in variable names. Rename to underscore
User avatar
Caronte3D
Addict
Addict
Posts: 1055
Joined: Fri Jan 22, 2016 5:33 pm
Location: Some Universe

Re: Problem with placement of #DQ$ ?

Post by Caronte3D »

Oops! :oops: You're right :lol:
vmars316
Enthusiast
Enthusiast
Posts: 474
Joined: Fri Jun 29, 2012 12:24 am
Contact:

Re: Problem with placement of #DQ$ ?

Post by vmars316 »

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
vmars.us Win11 x64 , Martin Guitar 000-16 (1995)
"All things in moderation , except for love and forgiveness."
User avatar
Josh
Addict
Addict
Posts: 1183
Joined: Sat Feb 13, 2010 3:45 pm

Re: Problem with placement of #DQ$ ?

Post by Josh »

sorry for my bad english
User avatar
Kiffi
Addict
Addict
Posts: 1357
Joined: Tue Mar 02, 2004 1:20 pm
Location: Amphibios 9

Re: Problem with placement of #DQ$ ?

Post by Kiffi »

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>"
Small note: If this is supposed to be XML, then it is not valid (even with the correctly set quotation marks).
Hygge
User avatar
mk-soft
Always Here
Always Here
Posts: 5406
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Problem with placement of #DQ$ ?

Post by mk-soft »

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
vmars316
Enthusiast
Enthusiast
Posts: 474
Joined: Fri Jun 29, 2012 12:24 am
Contact:

Re: Problem with placement of #DQ$ ?

Post by vmars316 »

Kiffi wrote: Small note: If this is supposed to be XML, then it is not valid (even with the correctly set quotation marks).
Thanks ,
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."
User avatar
Olliv
Enthusiast
Enthusiast
Posts: 542
Joined: Tue Sep 22, 2009 10:41 pm

Re: Problem with placement of #DQ$ ?

Post by Olliv »

Code: Select all

div$ = ~"<div-div style=\"order: 1;\">1</div-div>"
I suppose (after 1st correcting from josh) it misses a '>'...
Post Reply