473,385 Members | 1,890 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Convert string to command?

Hello everyone!

in a module in a function the following STRING is created:

CommandBars('OK Revisie').Controls(8).Enabled=False

Does anyone know how to execute this string as if it were a command?

TIA!!!

Henro

Oct 13 '06 #1
4 5959
On 13 Oct 2006 06:01:48 -0700, "Henrootje" <He****@gmail.comwrote:
>Hello everyone!

in a module in a function the following STRING is created:

CommandBars('OK Revisie').Controls(8).Enabled=False

Does anyone know how to execute this string as if it were a command?

TIA!!!

Henro
Check out the EVAL function in help.

Wayne Gillespie
Gosford NSW Australia
Oct 13 '06 #2

Wayne Gillespie schreef:
On 13 Oct 2006 06:01:48 -0700, "Henrootje" <He****@gmail.comwrote:
Hello everyone!

in a module in a function the following STRING is created:

CommandBars('OK Revisie').Controls(8).Enabled=False

Does anyone know how to execute this string as if it were a command?

TIA!!!

Henro

Check out the EVAL function in help.

Wayne Gillespie
Gosford NSW Australia
I did but it evaluates in '0' if false en -1 if true.......
Would I give in that string as a command it would disable the
control(8).
Eval does not. It actually does nothing but outputting a -1 or
0................. Or am I using it wrong? Just used it like
eval(string)

The help file also says al it does is generate the outcome of the
expression (in this case a string) as a number or as text..........I am
at a loss there/here

Oct 13 '06 #3
On 13 Oct 2006 10:12:32 -0700, "Henrootje" <He****@gmail.comwrote:
>
Wayne Gillespie schreef:
>On 13 Oct 2006 06:01:48 -0700, "Henrootje" <He****@gmail.comwrote:
>Hello everyone!

in a module in a function the following STRING is created:

CommandBars('OK Revisie').Controls(8).Enabled=False

Does anyone know how to execute this string as if it were a command?

TIA!!!

Henro

Check out the EVAL function in help.

Wayne Gillespie
Gosford NSW Australia

I did but it evaluates in '0' if false en -1 if true.......
Would I give in that string as a command it would disable the
control(8).
Eval does not. It actually does nothing but outputting a -1 or
0................. Or am I using it wrong? Just used it like
eval(string)

The help file also says al it does is generate the outcome of the
expression (in this case a string) as a number or as text..........I am
at a loss there/here
Create a Function which generates your string AND then applies it.
Then use Eval(MyFunction())

Or just call the function directly.
Wayne Gillespie
Gosford NSW Australia
Oct 13 '06 #4
Solved as in following post:

From: "Henrootje" <He****@gmail.com>
Newsgroups: comp.databases.ms-access
Subject: Re: Error 9: Subscript out of range
Date: Mon, 16 Oct 2006 11:30:20 -0000
Wayne Gillespie schreef:
On 13 Oct 2006 10:12:32 -0700, "Henrootje" <He****@gmail.comwrote:

Wayne Gillespie schreef:
On 13 Oct 2006 06:01:48 -0700, "Henrootje" <He****@gmail.comwrote:

Hello everyone!

in a module in a function the following STRING is created:

CommandBars('OK Revisie').Controls(8).Enabled=False

Does anyone know how to execute this string as if it were a command?

TIA!!!

Henro

Check out the EVAL function in help.

Wayne Gillespie
Gosford NSW Australia
I did but it evaluates in '0' if false en -1 if true.......
Would I give in that string as a command it would disable the
control(8).
Eval does not. It actually does nothing but outputting a -1 or
0................. Or am I using it wrong? Just used it like
eval(string)

The help file also says al it does is generate the outcome of the
expression (in this case a string) as a number or as text..........I am
at a loss there/here

Create a Function which generates your string AND then applies it.
Then use Eval(MyFunction())

Or just call the function directly.
Wayne Gillespie
Gosford NSW Australia
Oct 16 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: | last post by:
How do I convert a single character, e.g. "a" into char for use in the 'split' command? p.s. I have option strict on Tia.
9
by: ka1cqd | last post by:
I have been looking all over the place for a method to take command line arguments and convert them to a string or wstring so i can process the data and then covert the resulting strings to...
4
by: dba_222 | last post by:
Dear Experts, Ok, I hate to ask such a seemingly dumb question, but I've already spent far too much time on this. More that I would care to admit. In Sql server, how do I simply change a...
4
by: Mike Collins | last post by:
This worked in the command window while in debug mode ?table.Rows.ItemArray.ToString() "f0165f94-648f-4997-b578-11d89c8b1f61" But gives the error below when I compile. Cannot implicitly...
3
by: GM | last post by:
Dear all, Could you all give me some guide on how to convert my big5 string to unicode using python? I already knew that I might use cjkcodecs or python 2.4 but I still don't have idea on what...
9
by: keliie | last post by:
Hello (from Access novice), I'm building a switchboard form (using a Treeview object). The treeview is populated by two tables (tblSwitchboardParent and tblSwitchboardChild). Within...
27
by: comp.lang.tcl | last post by:
My TCL proc, XML_GET_ALL_ELEMENT_ATTRS, is supposed to convert an XML file into a TCL list as follows: attr1 {val1} attr2 {val2} ... attrN {valN} This is the TCL code that does this: set...
4
by: Franky | last post by:
I have a Command Prompt window open and select all the characters and copy them to the clipboard. I then read them from the clipboard str = CType(DataO.GetData(DataFormats.OemText, False),...
0
by: =?Utf-8?B?cm9uZSBtYXRpYXM=?= | last post by:
I have the same task to do but everytime I tried to parse my code I get a null value returned after executing "dtMaterials.WriteXml(swMaterials);". I am using the following code: Hope you can hep...
3
by: mamul | last post by:
Hi please some one can help me. how to convert char * to string? i have take char *argv from command line and want to pass to a function as string object(string str) i want to first convert argv...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.