English
Forum & Help

Infinity-Profan suggestions and Opportunities

String-variables append

 

ByteAttack
Since I Yes once in a while from XProfan SQL-instructions write, or one HTML or XML-code ausgebe, yields itself zwangsläufig a problem the Overview over single Strings.
The are partly so dermaßen unübersichtlich.
(partly have I a String with of/ one SQL-instruction the 5 Lines long is, with of/ one Monitorauflösung of 1920...)
clear can The in several Strings divide, and later join.

example (time KURZ) because of the Overview:
"<td align="+Chr$(34)+"center"+Chr$(34)+" valign="+Chr$(34)+"middle"+Chr$(34)+" bgcolor="+Chr$(34)+HexColor$+Chr$(34)+" class="+Chr$(34)+"Smaller"+Chr$(34)+"><font color="+Chr$(34)+"#FF0000"+Chr$(34)+">"+PGZWeb$+"</font></td>"

Übersichtlicher would, if one The variables simply Hinten anstellt:
example:
"<td align={0}center{0} valign={0}middle{0} bgcolor={0}{1}{0} class={0}Smaller{0}><font color={0}#FF0000{0}>{2}</font></td>",Chr$(34),HexColor$,PGZWeb$

SQL-example:
"SELECT * FROM STDU WHERE STDUSERID = "+MitID$+" AND MONAT="+WahlMonat$+" AND JAHR="+WahlJahr$
'in
"SELECT * FROM STDU WHERE STDUSERID = {0} AND MONAT={1} AND JAHR={2}",MitID$,WahlMonat$,WahlJahr$

the would still take off XProfan self (where i think, that the Umbau To ardent and inkompatible To previous versions would)
but with Infinity Perhaps a Überlegung worth would...
 
XProfan X3
Website:  [...] 
Facebook:  [...] 
12/07/15  
 



there Gibts what in PHP, where one variables use can if one Stringkonstaten in " " pack instead of in ' ' How follows:
;$rofl="Test"
;$mao=123
;echo "Dies is a $rofl velvet $mao."

unfortunately often too a angry entrapment.

Dene idea find I but well.

How would a Escape-sequence?

say we:
var rofl="test", mao=123
print "Dies is a \$rofl velvet \$Test."

this then but too only " " Stringkonstanten and not ' ', so one ' ' always use can with the know the 1:1 transfer becomes.

Roland can the very so easy install.

what hold You of it Roland, of such "gemeinsamen" principle for following versions?
 
12/11/15  
 




Michael
W.
for XProfan goes Yes:
"<td align=\qcenter\q valign=\qmiddle\q bgcolor=\q"+HexColor$+"\q class=\qSmaller\q><font color=\q#FF0000\q>"+PGZWeb$+"</font></td>"
' and with sqlselect ex XProfan9 :name$ (in db()-stature since X2)
SQLSelect "SELECT * FROM STDU WHERE STDUSERID = :MitID$ AND MONAT= :WahlMonat$ AND JAHR= :WahlJahr$"
db("SQLSelect", "SELECT * FROM STDU WHERE STDUSERID = :MitID$ AND MONAT= :WahlMonat$ AND JAHR= :WahlJahr$", gridhandle&)
 
XProfan X3
System: Windows 8/10, XProfan X4
Programmieren, das spannendste Detektivspiel der Welt.
12/13/15  
 




RGH
That the Escapesequenz \$ ließe itself gewiss install. The question would only, How the end the Variablennamens recognized becomes.naturally could the one space his, but one should then two space write, if one of it in Ergebnisstring come along should.

(The SQL-Syntax with the führenden ":" would for normal Strings unfit, there Yes the colon thoroughly as such vorkommen can.)

Greeting
Roland

Greeting
Roland
 
XProfan X3
Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4
12/13/15  
 



RGH (13.12.15)
That the Escapesequenz \$ ließe itself gewiss install. The question would only, How the end the Variablennamens recognized becomes.


Perhaps, because still The Variablennamen any famous are.

var aster.isk

"\$aster.iskize" becomes ""+$aster.isk+"ize"
 
12/13/15  
 




ByteAttack
means
print "Dies is a \$rofl velvet \$Test."
would naturally supi...
or
print "Dies is a {$rofl} velvet {$Test}."
would still too weg or?
 
XProfan X3
Website:  [...] 
Facebook:  [...] 
12/13/15  
 



would be everything weg, too

var rofl="mao"
print "Dies is a rofl!"

would weg.

Problems come into being if time {$rofl} time need instead of {$rofl} and whether mans übersieht.

my plan is there plainer and says, that it Yes already 1 Sonderzeichen gives for Kuriositäten. Virtually 1 Kuriositätenzeichen instead of many.

now goes naturally \rofl not, there \r include. \$ against isn't uses and the $ characters is right verständlich for "Variable" - so too in PHP eachone Varname with $ launch. means simplest is still \$rofl and either Gibts ne Variable rofl or not.

var rofl,rofl1,rofl2
print "test \$rofl2"

@Roland: Übersehe I what? or had You, the Abschließende characters only therefore installed because it plainer produce was?

Perhaps would indeed for Infinity one print "Hallo \$rofl\" for Humans rather - means conclusion with \ too for better Lesbarkeit.
 
12/13/15  
 




HofK
iF (13.12.15)
now goes naturally \rofl not, there \r include. \$ against isn't uses and the $ characters is right verständlich for "Variable" ...

Perhaps would indeed for Infinity one print "Hallo \$rofl\" for Humans rather - means conclusion with \ too for better Lesbarkeit.


What is because in Infinity-Profan on \ Sequenzen presently already uses? the \n is Yes allgegenwärtig.

personal could I very well with print "Hallo \$rofl\" make friends.
 
12/13/15  
 




RGH
Yes, with the the \ end the Namens gefällt me. it increased objectively The Lesbarkeit. i'll soon try, it in FreeProfan incorporate. (If it works, then naturally too into next XProfan-Version.)

Greeting
Roland
 
XProfan X3
Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4
12/13/15  
 




RGH
Ah, me falls straight one, I the \$ already verbraten have, circa with putChar Hexwerte in a File write to.

therefore my suggestion, in Anlehnung on embedded SQL (see db("SQLExec", ... in the Help) \: To use. the end the variables becomes then, How with whom embedded variables in SQL by the Postfix with variables with the same and through one Semikolon with variables new Type.

means z.B. print "Hallo \:rofl;"

time look, whether I it tommorrow (or into next Meet) time in FreeProfan testweise einbaue.

Greeting
Roland
 
XProfan X3
Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4
12/15/15  
 




RGH
Sodele: In FreeProfan have I the now so installed. it functions right well. (Also can Strings with the Operator $ join and $currentdir gives the actually directory again.) I try, it yet to christmas on the Server To bring.

in the next XProfan-Version becomes it these extensions naturally too give. beginning the year becomes it a kostelosen Patch give, after I from Boston and New York back be.

Greeting
Roland
 
XProfan X3
Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4
12/23/15  
 




HofK
Eigenzitat- Eigenteilantwort 

Klaus Hoffmeister (13.12.2015)
What is because in Infinity-Profan on \ Sequenzen presently already uses?


have time a little bit with Android studio and Infinity-Profan rumgetestet.
The Unicode-Sequenzen functions so far. though not any characters How one tappt im dunkeln (differently evident yet to Android versions) with the App UnicodePad get outputted go.

Something like
print "Schlängel-arrow \u21DD"
is right nice.
 
12/27/15  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

12.987 Views

Untitledvor 0 min.
ByteAttack08/07/20
prfBook11/20/18
Thomas Freier07/21/18
rquindt09/21/17
More...

Themeninformationen



Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie