473,493 Members | 4,319 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

how to use any coding with 1 alphabet

RAMAND1
2 New Member
hi, my question is that how can we use any coding with 1 alphabet.
like in module i made these-

global c1 as string
public function f1()
c1="End If"
End Function

and then in form coding-

after writing f1 to call f1
can i use c1 instead of end if

thanks
Sep 17 '12 #1
5 1389
Rabbit
12,516 Recognized Expert Moderator MVP
No, you can't. And why would you ever need to?
Sep 17 '12 #2
RAMAND1
2 New Member
thanks for reply friend, i need it because i have to write some coding like this 200 times and every time something is different in the coding so i don't want copy paste also every time....i can say yes i can use copy paste too but want to make less coding app and want to know if it is possible......

thanks !
Sep 18 '12 #3
Killer42
8,435 Recognized Expert Expert
I'm sure we've had some info posted here about executing VB (or VBA or VBScript) code from a string. It may be worth a quick search...

Ahah! It's actually one that I wrote, back in 2007. See this link.
Sep 18 '12 #4
Rabbit
12,516 Recognized Expert Moderator MVP
The only thing is that it requires additional coding. They're not wanting to run dynamic code, they want to change the required syntax. So instead of writing
Expand|Select|Wrap|Line Numbers
  1. If x Then
  2.    Do y
  3. End If
They want to write
Expand|Select|Wrap|Line Numbers
  1. If x Then
  2.    Do y
  3. c1
And they want it to compile. So they want the compiler to understand that c1 now means End If. Because it's apparently too time consuming to type End If.
Sep 18 '12 #5
Killer42
8,435 Recognized Expert Expert
Good point.

I recommend using other tools such as MS Word to generate repetitive stuff, then copy/paste everything in one big operation. Also, perhaps ironically, you can write a VB program to generate the variations, perhaps based on a small input each time. I've done that sort of thing many times for things like generating test data and so on.
Sep 19 '12 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

5
6630
by: Stefan Krah | last post by:
Hello, I am currently writing code where it is convenient to convert char to int . The conversion function relies on a character set with contiguous alphabets. int set_mesg(Key *key, char...
12
14490
by: one | last post by:
greetings i am just wondering if some expert here can either show me how to do this or point me to the right direction (url... i want to use c# to generate a list of alphabet e.g A B C ... AA...
8
3233
by: Jack Addington | last post by:
I want to scroll through the alphabet in order to scroll some data to the closest name that starts with a letter. If the user hits the H button then it should scroll to the letter closest to H. ...
9
11197
by: booksnore | last post by:
I am writing some code to search for strings that contain every letter of the alphabet. At the moment I am using the method below to check to see if a string contains every letter of the alphabet....
31
2624
by: Joe Smith | last post by:
"ABCDEFGHIJKLMNOPQRSTUVWXYZ" "abcdefghijklmnopqrstuvwxyz" "0123456789" " " "!#%^&*()-_" "+=~\|;:\'" "\"{},.<>/\?" "\a\b\f\n\r\t\v\\" Do the above string literals comprise an alphabet for C?...
0
2957
by: rockdale | last post by:
Hi, all: I implemented an alphabet list so that when user click letter A then I will re-bind a gridview control using SQL stored procedure. It works fine. The problem is I populate my alphabet...
1
1761
by: kannabiran | last post by:
Hi, Im using C# ASP.Net here in the textbox i need to get the input as like follows ,any alphabet or any alphabet,any alphabet for example ,C or C,E like this i want to get the input.The...
0
2232
by: ajibits | last post by:
hi ppl For my application, I need to encode/decode the information in either of these two following coding schemes. Contents: Alpha tagging(name) of the associated dialling number. ...
20
18994
by: geebanga88 | last post by:
HI i have a method that is supose to store the alphabet in an array however dont think that it is being added to the array. public static void GetAlphabet (char alphabet) { int...
2
8381
by: puT3 | last post by:
Hi, I want to develop a flash application for learning to write Arabic alphabet. I want to use graphic tablet for writing exercise. I have a dotted line to guide user to write the alphabet. My...
0
7118
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
1
6862
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7364
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5452
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4886
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4579
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3078
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1397
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
282
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.