# Determine if a namespace/variable-name exists # ## Check for namespace existence in your environment variables and objects before writing to them. ## **Guess if "Book1.chapter22.paragraph37" exists without provoking errors and retrieve/send data if it exists with simplest JS expressions.** Call syntax: isNS( [string], [num] ); Example: var nsresult = isNS( "Book1.chapter22.paragraph37", -1 ); if( nsresult[0] ){ send( nsresult[1] ) else notify( nsresult[4], nsresult[2] ) };... etc, etc. Omit secondary argument (function-return modifier) to get a Boolean. (Using 0, false, or undefined keyword has the same effect.) isNS( "myObject.property.subProperty.myMethod" ); _> Boolean : true/false Modifier Possible values: _> -1; (0|false|undefined); …

Member Avatar
Member Avatar
+0 forum 5

Hi, I have made a script that is supposed to check if an image exists on remote server, check if exists on local server, and decide weither or not to copy the image or not (It is poster images for a movie database of my own). However this is under a mysql query and is supposed to go through the entire table, but instead it only works for the first row and I recieve php error: > Fatal error: Cannot redeclare remoteFileExists() (previously declared in C:\wamp\ww ... etc. Here is my code, I tried 2 different methods, first using curl: …

Member Avatar
Member Avatar
+0 forum 4

I want to check if value is already exists in database with php. But this value can be as for example "John" or "JOHN" or "JOhn" or ... e.t.c how to check for all conditions?

Member Avatar
Member Avatar
+0 forum 8

Hi guys, I'm still new to .NET and your answers to my questions have been so helpful. I have another question yet again, however. This time my question has to do with sql server and handling it with code behind. I am creating a stored procedure which is supposed to check if a record exists in the table and if it does, return a value so that I may tell the user that the record already exists. If it does not exist, and insert statement is executed. Here is my stored procedure: @UserID VARCHAR(50), @PlayerID VARCHAR(50) AS BEGIN -- SET …

Member Avatar
Member Avatar
+0 forum 6

I am trying to see if a directory exists, but have not found anything that is working the way is I would like it to. The PHP script is in the same directory as the folders I am checking for ( www ), but will not detect the folders unless I type out the full path. (( I apologize for clumping the code together to save space )) <html> <title>Test Server</title> <?php $Var1 = "\Player\Rick"; $Var2="C:\wamp\www\Player\Rick"; # This Will Not Work if ( is_dir($Var1) ){echo "Yes 1 <br>" ;} else{echo "No 1 <br>";} # This Will Work if ( is_dir($Var2) …

Member Avatar
Member Avatar
+0 forum 3

I am developing an sql query to use to grab information from a postgres db. The scenario is as follows: the database I am grabbing information is the backend postgres database of an application (Tableau). My objective is to pull all of the workbooks, views, and datasources (considered objects) that are untagged in the database. I am using 4 tables - taggings (contains all tagged objects related to the object by the objects id), views (contains all views and their ids), workbooks (contains all workbooks and their ids), and datasources (contains all datasources and their ids). I have already successfully …

Member Avatar
Member Avatar
+0 forum 7

Hi, I am using curl to download files from the internet and it is working fine. The problem is that I am trying to check if the file exists before downloading it. I was thinking that if the file doesn't exist, then I would receive a CURLcode with and error, but instead of that, I am always receiving CURLE_OK. Is there a way to check if the file exists with curl? If not, which is the best way to do it in c++? Thank you in advance.

Member Avatar
Member Avatar
+0 forum 2

Would anyone happen to know also if there is some predefined swing box for prompting the user to decided whether or not to overwrite an exhisting file? you know the basic "This file already exists, would you like to overwrite it?"

Member Avatar
Member Avatar
+0 forum 2

Hi, Am trying to check if a remote directory exists. my string has a path "\\1.1.1.1\XYZ", 1....1 being the IP address of the computer am trying to connect to, But Directory.Exists(stringPath) returns true when I debug the application and the same code returns false from the setup exe. Note : sharing and security for the remote folder has been given full access control. Any help appreciated. Thanks.

Member Avatar
Member Avatar
+0 forum 1

if not exists (select * from sysobjects where name='amrreconAccountsTB') begin execute "create amrreconAccountsTB(acct_id char(2048) NULL)" end; Message from server 'NOCTREPI04' (Msg 156, Severity 15, State 2): error near the keyword 'end'. Can someone please help me and tell me what is the syntax error here?

Member Avatar
+0 forum 0

hi, Is there any sql query to check if a table exists already in a database? Thanks in advance.:)

Member Avatar
Member Avatar
+0 forum 8

HI Dears all I have 2 tables in DB. [LIST=1] [*]Lease_north [*]Lims_payment [/LIST] My first query is [ICODE]Select * from lease_north WHERE LaStartDate like '%-04-%'[/ICODE] its shows 100 result means 100 payments are due and must be paid in April. My second query is[ICODE]Select * from lims_payment WHERE pdate like '%-03-%'[/ICODE] I write 03 because if we process in march then cheque will be get ready in march. it shows 80 results . Now 100-80=20 Can i get this 20 count from just one query. Please help me. and how i can use NOT EXIST .

Member Avatar
Member Avatar
+0 forum 27

I've tried all manner of methods for accomplishing this and nothing has worked so far. The latest attempt follows. The objective is to call a function that tests for the existence of an image file. If the file exists then that image file is to be displayed. Otherwise, an alternative image file is to be displayed. So in the body of my page I have a very simple: [CODE] <script> document.write(dispimg()); </script> [/CODE] Inside the head section is: [CODE] function dispimg(){ var imgtagf="<IMG alt='"; var imgtagm="Featured Pet' hspace=0 src='gallery/Featured"; var imgtagb=".JPG' size='medium' border=0>;"; var imgtag=""; if (testExists("gallery/Featured.JPG")) { alert("file exists"); …

Member Avatar
Member Avatar
+0 forum 8

I have created a very long code on my app for checking if a record exist then insert. Is it possible for a single SQLString to check if records exist then update or insert? Sorta like [CODE] IF NOT EXISTS (SELECT column1 FROM table WHERE column1 = [COLOR="Red"]'sample1'[/COLOR]) THEN (INSERT INTO table(column1,column1,column1) VALUES([COLOR="Red"]'sample'[/COLOR],[COLOR="red"]'sample'[/COLOR],[COLOR="red"]'sample'[/COLOR])) END IF [/CODE]

Member Avatar
Member Avatar
-1 forum 2

The End.