Sorry for my silly question. I need to declare may variable as string.
1st line dim x,y,a,_
2nd line b,c,d as string
(it seems syntax error, Please be kind to correct me) 3 1034
Hi,
Leave a space between ',' and '_' on the 1st line as in
Dim x,y,a, _
b,c,d as string
"Agnes" <ag***@dynamictech.com.hk> wrote in message
news:OS**************@TK2MSFTNGP11.phx.gbl...
Sorry for my silly question. I need to declare may variable as string.
1st line dim x,y,a,_
2nd line b,c,d as string
(it seems syntax error, Please be kind to correct me)
;O thanks a lot
"Shiva" <sh******@online.excite.com> ¦b¶l¥ó
news:%2****************@tk2msftngp13.phx.gbl ¤¤¼¶¼g... Hi, Leave a space between ',' and '_' on the 1st line as in
Dim x,y,a, _ b,c,d as string
"Agnes" <ag***@dynamictech.com.hk> wrote in message news:OS**************@TK2MSFTNGP11.phx.gbl... Sorry for my silly question. I need to declare may variable as string. 1st line dim x,y,a,_ 2nd line b,c,d as string (it seems syntax error, Please be kind to correct me)
Agnes,
I would suggest: 1st line dim x,y,a As String 2nd line Dim b,c,d as string
However I normally use:
Dim x As string
Dim y as string
Dim a as string
Dim b as string
Dim c as string
Dim d as string
With that many variables, I would look at what the routine was really doing
and refactor (http://www.refactoring.com) so I did not need so many string
variables. Such as using an Array instead.
Hope this helps
Jay
"Agnes" <ag***@dynamictech.com.hk> wrote in message
news:OS**************@TK2MSFTNGP11.phx.gbl... Sorry for my silly question. I need to declare may variable as string. 1st line dim x,y,a,_ 2nd line b,c,d as string (it seems syntax error, Please be kind to correct me)
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Alexander Zatvornitskiy |
last post by:
Hello All!
I'am novice in python, and I find one very bad thing (from my point of view) in
language. There is no keyword or syntax to declare variable, like 'var' in
Pascal, or special syntax in...
|
by: Maett |
last post by:
Hi.
When I try to compile this piece of Code with VC.NET 2003
// code start
#include <vector>
template< class T > struct Marker
{
public:
|
by: Kobu |
last post by:
My question is about the use and meaning of the terms "declaration" and
"definition" as it pertains to the C language.
I've read sources that mix the two up when talking about such things as...
|
by: Cedric |
last post by:
Hello,
I'm trying to implements snmp stuff into my App and I have problems with
SnmpStrToContext to do his job.
I Declared :
private static extern IntPtr SnmpStrToContext(
IntPtr session,...
|
by: ÂËÉ«¾µ |
last post by:
in my idl file, i define a user-define data type as bollow:
typedef struct RasterFileHeader
{
DWORD dwVersion;
LONG nDataOffset;
LONG nBandCount;
LONG nWidth;
LONG nHeight;
enum...
|
by: Amit_Basnak |
last post by:
Dear Friends
I am giving the following command to build the server executableon
HP-UX
/opt/aCC/bin/aCC -o SOAPServer SOAPServer.o WFWuListService.o
WFWuListImpl.o WFWuListStructs.o WFWuList.o...
|
by: Jess |
last post by:
Hello,
I was told that if I declare a static class constant like this:
class A{
static const int x = 10;
};
then the above statement is a declaration rather than a definition.
As I've...
|
by: subramanian100in |
last post by:
Consider the following program:
#include <iostream>
using namespace std;
int main()
{
int i;
|
by: vaib |
last post by:
hi to all.i'd like to know the actual difference between variable
declaration and definition.it would be very helpful if anyone out
there wud help me out with this thing.i'm writing here after here...
|
by: parag_paul |
last post by:
I understand that a const qualifier after the function declaration
makes it a const function for the class.
Like
int func1 const ( double, long int );
Now what is the purpose of the...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
| |