473,320 Members | 2,098 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,320 software developers and data experts.

Array Processing/Variable Question

kb
I am working with a language that's a dialect of VB (old one called BasicScript.) I have to fill an array with the text values contained in variables and write them out using a SQL Server stored procedure. My code so far is

Dim RejResArray(12) As Strin
For i = 1 to 1
RejResArray(i) = Reject1.Tex
Nex

The variables are coming from a separate application that I don't have much control over, and are named Reject1 -- Reject12. I would like to test each variable to see if it's null or '' and then assign it to the array if it's not. In another language I work with, I am able to have the suffix number of the variable fill in once I know the results of the test. (so something like RejResArray(i) = Reject&j.Text where j is the number of the variable that passes the test.) Is there a way to do something similar in VB? (I'll worry about the basicscript after knowing that.)
Nov 20 '05 #1
3 1349
* "=?Utf-8?B?a2I=?=" <an*******@discussions.microsoft.com> scripsit:
The variables are coming from a separate application that I don't have
much control over, and are named Reject1 -- Reject12.


How does the other application make these "variables" accessible?

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #2
kb
The application uses what it calls "virtual" variables which are part of the form object. It then allows for scripting behind the form. I can create local or global variables in the script, but when the form unloads, those go away and are unavailable for export. (If I could just use normal variables, this wouldn't be an issue) The virtual variables that are part of the form remain and are available for export. For the most part I can use them just like a normal VB variable.
Nov 20 '05 #3
Hi Kb,

In VB.net a variable is not equal to the old classic VB variable, that is
one of the big differences.

Maybe you can try it in more classing newsgroups as

microsoft.public.VB
or
microsoft.public.scripting.vbs

I hope you find your solution.

Cor
Nov 20 '05 #4

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

Similar topics

21
by: Patrick Dunford | last post by:
PHP allows control arrays in forms e.g. this is a counter editing script echo "<input name=\"counterdelname\" type=\"hidden\" value=\""; echo "<input name=\"countername\" type=\"hidden\"...
4
by: LRW | last post by:
I'm not even sure this is possible, and if it is, I'm having a hard time focusing on a function that would make it work. What I have is a dynamically generated form with dozens of rows from a...
6
by: Harry Overs | last post by:
My program needs to take a pointer to BYTE array (unsigned char*) and convert it into a STL list so that each BYTE in the array has its own element in the list, i.e. if the array has hundred bytes...
9
by: GiantCranesInDublin | last post by:
Hi, I am looking for the best performing solution for modifying and iterating an object graph in JavaScript. I have outlined below a simplified example of the object model and examples of how I...
45
by: VK | last post by:
(see the post by ASM in the original thread; can be seen at <http://groups.google.com/group/comp.lang.javascript/browse_frm/thread/3716384d8bfa1b0b> as an option) As that is not in relevance to...
6
by: foreverbored75 | last post by:
Hello All! I am just learning c++ in school and I have the following question: Is there a way for the user to input the length of an array (console application) without using another variable?...
4
Ispep
by: Ispep | last post by:
Hi, unfortunately having a bit of difficulty with a question from an Open University course I'm currently doing. If you could help me out in any way I'd be grafeul (though obviously it goes without...
4
by: mab464 | last post by:
I have this code on my WAMP server running on my XP machine if ( isset( $_POST ) ) { for($i=0; $i<count($_POST);$i++) { if ($ans != NULL ) $ans .= ", " . $_POST ; // Not the first...
4
by: Blackwater | last post by:
There's an old database system called "PICK" - still in use in various forms such as 'OpenQM' - wherein you can SELECT or READ directly into an array variable. For example : "SELECT * FROM...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
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...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
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
0
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.