» Home » syntax » Page 1
Code Syntax Highlighting in Delphi 6 (to highlight syntax and ifdef blocks)
Category : Computers

Delphi 6 is pretty old, I know. Unfortunately there are reasons why I can't upgrade which I don't want to get into here.

My problem is that it's hard to read code. I have the Castalia plugin which helps a bit (parenthesis matching, shows blocks of if, else, end) but it doesn't highlight the syntax like other IDEs do (variables, constants, procedures, etc.) in different colors.

View Replies

JSON array syntax. Are the curly brackets (object syntax) strictly necessary?
Category : Web Design

Is it possible for a json string to include only square brackets ? For ex. :


I get unexpected character error from parsing that string ... (long time since i worked on this script and i think it worked before ) .

Parsing the json string will allways make an object from the string ? or is it possible to parse

View Replies

Scheme macro expansion: Nesting let-syntax inside define-syntax
Category : Programming Languages

I wish to expand

(foo x (f n) (f n) (arbitrary) (f n) ...)


(begin (x 'f n) (x 'f n) (arbitrary) (x 'f n) ...)

my attempt is:

(define-syntax foo
(syntax-rules ()
((_ l a ...)
(let-syntax ((f (syntax-rules ()
((_ n) (l (quote f) n)))))

View Replies

ORA-00905: Trouble converting Mysql/MMSQL syntax to oracle syntax
Category : Databases

Hi guys i'm having trouble running the below code on an Oracle DB not too sure why - getting ORA-905 error - missing keyword

This works fine on MSSQL and MYSQL.

Any indication as to how to fix will be much appreciated.


SELECT product.productId, product.version
FROM product

View Replies

linq-to-sql joins with multiple from clauses syntax vs. traditional join syntax
Category : Programming Languages

What the difference between writing a join using 2 from clauses and a where like this:

var SomeQuery = from a in MyDC.Table1
from b in MyDC.Table2
where a.SomeCol1 == SomeParameter && a.SomeCol2 === b.SomeCol1

and writing a join using the join operator.

This i

View Replies

Python syntax reasoning (why not fall back for . the way django template syntax does?)
Category : Coding

My karate instructor is fond of saying, "a block is a lock is a throw is a blow." What he means is this: When we come to a technique in a form, although it might seem to look like a block, a little creativity and examination shows that it can also be seen as some kind of joint lock, or some kind of throw, or some kind of blow.

So it is with the way the django template syntax uses

View Replies

Linq query syntax to method syntax when using multiple joins to introduce dynamic restrictions
Category : Programming Languages

I'm trying to translate a linq query using query keywords to the method syntax.
My ultimate goal is to be able to apply additonnal restrictions at runtime each time you see a Where clause in the query. I have a total of 14 different parameters to be applied. Some are mutually exclusive, other are inclusive.

Here is the starting query :

query = from p in context.P

View Replies

error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-10,10' at line 1
Category : Programming Languages

I have a table that lists all employees in the database but when I deleted all of them using $query = mysql_query("DELETE FROM $this->emp_tbl");

I got this error:

Sucessfully deleted!Database Failed: You have an error in your SQL
syntax; check the manual that corresponds to your MySQL server version
for the right syntax to use near '-10,10

View Replies

Convert LINQ in query syntax to lambda syntax
Category : Programming Languages

This is my LINQ query, Please help me in changing this LINQ query to query using Lambda expression:

var query = from d in db.customers
from s in db.tbl_states
where d.cust_state == s.state_id
select new

View Replies

How do I create my own syntax / rewrite existing syntax in ruby?
Category : Programming Languages

Here is, for example, a standard if semantic:

if (condition)
do stuff

What I want to be able to do is to re-write if in such a way that, if an exception is thrown, I can do some error handling.

Does ruby have a way to re-define pre-existing syntax? If so, how?

Lets say in an if co

View Replies

2012 / 2017 Copyrights BigHow , All Rights Reserved .