Left() = Left()
Mid() = Mid()
IsNumeric() = IsNumeric()
CInt() = Val()
CStr() = toString()
IsUpper() = not sure about this one off hand
InStr() = Find() or FindNoCase()
Left() = Left()
HTH
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October
Thanks Mike
BTW, I used ReFind([[:upper:]],strChar) for IsUpper()
-Original Message-
From: Mike Townend [mailto:[EMAIL PROTECTED]
Sent: 22 October 2003 11:05 am
To: CF-Talk
Subject: RE: VB Functions -- Coldfusion?
Left() = Left()
Mid() = Mid()
IsNumeric() = IsNumeric()
CInt() = Val
=true
cfreturn reFind([[:upper:]], str, 1)
/cffunction
-Brad
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 22, 2003 7:18 AM
To: CF-Talk
Subject: RE: VB Functions -- Coldfusion?
Thanks Mike
BTW, I used ReFind([[:upper:]],strChar) for IsUpper
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 22, 2003 12:48
To: CF-Talk
Subject: RE: VB Functions -- Coldfusion?
You could wrap that in a UDF and submit it to cflib.org :)
It would be something like...
cfscript
function isUpper(str) {
return reFind([[:upper:]], str, 1);
}
/cfscript
For a string, do reFind(^[[:upper:]]+$, str), works for a single character too
Pascal
-Oorspronkelijk bericht-
Van: Mike Townend [mailto:[EMAIL PROTECTED]
Verzonden: wo 22/10/2003 13:55
Aan: CF-Talk
CC:
Onderwerp: RE: VB Functions -- Coldfusion?
but this would only really work
Left() = Left()
Mid() = Mid()
IsNumeric() = IsNumeric()
Note that the IsNumeric() function is quite different between the two
languages. VBScript only cares if the value contains characters which
can appear in a number, including scientific notation. ColdFusion seems
to check to see whether or
You've also got to be *really* careful with the HTTP component you choose if
this will be under load, even if you buy a commercial COM object. I went
through this several times (in the ASP world) and found that many of the
components were not threaded properly for dual/quad processor servers
Microsoft's XMLHttp com object.
http://msdn.microsoft.com/library/default.asp?url=/downloads/list/xmlgeneral
.asp
-Original Message-
From: Sean McCarthy [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 23, 2003 3:26 PM
To: CF-Talk
Subject: VB version of cfhttp
Does anyone know of how
Does anyone know of how I would do a VB http call. Same as
how cfhttp works behind the scenes without spawning a user.
There are many ways you might do this, depending on the version of VB and
your willingness to use third-party components. You can do it directly in
older versions of VB using
You could use Winsock, however if you want an object that automatically
handles virtually all of the lower level functions you may want to use the
inet control (Microsoft Internet Transfer Control - msinet.ocx). It takes
but one line to make an http request.
There are many ways you might do
How about using an error block. Try to use it - if you get a variable does
not exist error then dim it.
-Original Message-
From: Benoit Martin [mailto:[EMAIL PROTECTED]]
Sent: 09 September 2002 21:48
To: CF-Talk
Subject: RE: VB
Unfortunately I don't know the answer but I don't think
Isn't it DIM
Robert Everland III
Web Developer Extraordinaire
Dixon Ticonderoga Company
http://www.dixonusa.com
-Original Message-
From: Scott Mulholland [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 09, 2002 4:15 PM
To: CF-Talk
Subject: OT: VB
Anyone know if there is an
Dim only declares the var..
Try this:
Dim x
x =
-Original Message-
From: Robert Everland [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 09, 2002 4:17 PM
To: CF-Talk
Subject: RE: VB
Isn't it DIM
Robert Everland III
Web Developer Extraordinaire
Dixon Ticonderoga Company
http
Carcieri [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 09, 2002 10:24 AM
To: CF-Talk
Subject: RE: VB
Dim only declares the var..
Try this:
Dim x
x =
-Original Message-
From: Robert Everland [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 09, 2002 4:17 PM
To: CF-Talk
Subject: RE: VB
: Monday, September 09, 2002 4:48 PM
To: CF-Talk
Subject: RE: VB
Unfortunately I don't know the answer but I don't think that what you
proposed would work. This will initialize the var to no matter what. In
my understanding Scott is looking for code that would declare the var only
if it's not already
, 2002 1:55 PM
Subject: RE: VB
Hmm, maybe I am having a brainfart.
If I do:
cfparam name=foo default=
doesn't that set the value to ? If so, then doing what I suggested in VB
should work the same. Again, my brain ain't working today.
HTH,
T
-Original Message-
From: Benoit Martin
But foo is only if it does not already exist. Benoit was correct in
his understanding of what I am looking for.
-Original Message-
From: Tony Carcieri [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 09, 2002 3:56 PM
To: CF-Talk
Subject: RE: VB
Hmm, maybe I am having a brainfart
Yup...wasn't thinking. Well, how about:
%
If x Then
'do something
Else
'x =
End If
%
-Original Message-
From: Douglas Brown [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 09, 2002 5:07 PM
To: CF-Talk
Subject: Re: VB
That only sets the value
/
888-408-0900 x901
-Original Message-
From: Scott Mulholland [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 09, 2002 2:04 PM
To: CF-Talk
Subject: RE: VB
But foo is only if it does not already exist. Benoit was correct
in
his understanding of what I am looking
: Matt Liotta [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 09, 2002 3:18 PM
To: CF-Talk
Subject: RE: VB
Alright, a couple of things to note...
First, Dim is for declaring variables, but if you don't specify a type
then the variable is declared as a variant. Thus, instead of...
Dim x
-Original Message-
From: Shawn Grover [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 09, 2002 2:27 PM
To: CF-Talk
Subject: RE: VB
I haven't seen the if x is nothing method used for native variable
types
-
only for class objects. Does this work right?
As for trying to see if a variable
VB is for creating desktop/server apps - it's not a webserver product or any
such like. You create the VB project, compile the code and run the .exe
file. Unless you're getting confused with VBScript? You can quite happily
install Visual Studio and keep CFStudio on the same machine.
John.
Hello Mr.Kodjo!!
Good Day!!
Just instal VB6, that would do.
Thanks
Ashok
- Original Message -
From: Kodjo Ackah [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Wednesday, September 04, 2002 1:54 PM
Subject: VB and CF
I use CFStudio at the moment, I need to
Cheers guys!
Kodjo ackah
Principal Consultant
concrete-media.com
__
Signup for the Fusion Authority news alert and keep up with the latest news in
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ:
I am also starting doing some work in ASP.
Something very interesting. Many hard core VB programmers use Homesite
not MS Ide for coding.
The MS IDE has some merit since it will expand object constructs good in
the early stages.
You of course will need an IIS web server to run your stuff.
I
Something very interesting. Many hard core VB programmers
use Homesite not MS Ide for coding.
For a long time, the most commonly used ASP development tool was Homesite. I
suspect that ASP.NET developers are using VS.NET, though.
If you're doing ASP.NET development, and don't want to buy
Do you mean client side VB script (like Java Script) or server side VB
Script (ASP)? If it's the former then no probs. If it's the latter then I
don't think so. As far as I understand it (someone please correct me if I'm
wrong) IIS knows that it has to execute some ASP code before sending the
showing my M$ VB ignorance hereif we are on a IIS/M$
platform, can we run VB script in a .cfm template?
No, you can't directly run VBScript from within a cfm file. You can,
however, write a Windows Script Host file in VBScript, and run that through
CFOBJECT (if your script file is a
You can't use VBS and CF in the same template, but a CF template can
transfer to a ASP template vice versa.
Each can also invoke the other (CFHTTP).
That said, you can easily go from db to text file using CFQUERY and CFFILE.
HTH
Dick
At 10:34 AM -0500 10/2/00, Eric Hoffman wrote:
showing
Not with CFExecute. That only works server-side. You're going to have
to write something that runs client-side (COM, etc.)
--
Billy Cravens
[EMAIL PROTECTED]
Eric Hoffman wrote:
Ok, found the custom tag to dump my queries to a comma delimited file which is good
enough...
now, I know
Jimeny crickets. Duh. CFFILE. Time to start on the easy befoer the hard, huh.
Thanks.
[EMAIL PROTECTED] 10/02/00 11:47AM
You can't use VBS and CF in the same template, but a CF template can
transfer to a ASP template vice versa.
Each can also invoke the other (CFHTTP).
That said, you
Coms run server side, I think you meant to refer to ActiveX controls:-)
regards
Andrew Scott
ANZ eCommerce Centre
* Ph 9273 0693
* [EMAIL PROTECTED]
-Original Message-
From: Billy Cravens [mailto:[EMAIL PROTECTED]]
Sent: 03 October 2000 06:23
To: CF-Talk
Subject: Re: vb script
Yes we have done this (using a VFP COM object, but the idea's the same).
Your VB object needs to return an ADO recordset. This record set is viewed
as a collection by CF. You can loop through it with CF and do what you
need.
Looping through the recordset got very tiring very quick. So what we
o tried having the vb
com object return a variant type as well instead of a string, that was not
it either. Any ideas guys?
Shannon
-Original Message-
From: WBB [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 01, 2000 4:05 PM
To: [EMAIL PROTECTED]
Subject: Re: VB COM Examples
Hi Shannon,
I do
, that was not
it either. Any ideas guys?
Shannon
-Original Message-
From: WBB [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 01, 2000 4:05 PM
To: [EMAIL PROTECTED]
Subject: Re: VB COM Examples
Hi Shannon,
I don't know if that would work or not (I've never tried it) but yo
Hi Shannon,
I don't know if that would work or not (I've never tried it) but you might
consider sending the resultset or collection back as a formatted WDDX (a
string works fine for this) packet and read the packet in with CF..
Examples,
I am looking for examples of com implementation for
36 matches
Mail list logo