Click here to Skip to main content
15,909,897 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Array size problem Pin
Rakan Ma'ayeh10-Oct-07 12:28
Rakan Ma'ayeh10-Oct-07 12:28 
Questionhow to use textbox as a searching. to listbox?what is code to inside the textbox ? Pin
sheldon198710-Oct-07 0:16
sheldon198710-Oct-07 0:16 
AnswerRe: how to use textbox as a searching. to listbox?what is code to inside the textbox ? Pin
The ANZAC10-Oct-07 0:30
The ANZAC10-Oct-07 0:30 
QuestionDataGridView..... Pin
moomoooomoo9-Oct-07 23:32
moomoooomoo9-Oct-07 23:32 
QuestionConstant Module Or File ? Pin
barney_19729-Oct-07 22:09
barney_19729-Oct-07 22:09 
AnswerRe: Constant Module Or File ? Pin
Tom Deketelaere9-Oct-07 22:51
professionalTom Deketelaere9-Oct-07 22:51 
GeneralRe: Constant Module Or File ? Pin
barney_19729-Oct-07 23:21
barney_19729-Oct-07 23:21 
QuestionOld array function does not work in VB 2005? Pin
Nasbcn9-Oct-07 22:05
Nasbcn9-Oct-07 22:05 
Hola,

I use a package called AutoMod to make simulation models and to send messages from VB to this package teh AutoMod help says to use the next code

Call amxEvents.CallFunction("FsetMotorState", Array(1, Range("B10").Value))

However when I use this code in VB 2005 I get an error message that Array is a type and cannot be used like this.

What do I have to do in VB to get an array as the second argument?

Thanks in advance,

Nasko


See below for the syntax of the CallFunction method.

amx.CallFunction(funcName, params)

The syntax elements are defined as follows:

Syntax Element
Description

amx
An object variable that refers to the AutoMod runtime object.

CallFunction
The name of the method.

funcName
A string that indicates the name of the function in the AutoMod model that you want to call.

params
An array of variants that define the arguments required by the user-defined AutoMod function. The array must have as many values as the AutoMod function has arguments (any extra values are ignored). The variant values are automatically converted to the type of the associated argument in the AutoMod function in the model.

Note: The params syntax element is required. If the AutoMod function you are calling has no arguments, you must still define an empty array. For example:

Call amx.CallFunction("FAmodFunction", Array())

'An empty array is passed to the AutoMod function FAmodFunction

AnswerRe: Old array function does not work in VB 2005? Pin
Tom Deketelaere9-Oct-07 22:47
professionalTom Deketelaere9-Oct-07 22:47 
GeneralRe: Old array function does not work in VB 2005? Pin
Nasbcn9-Oct-07 23:37
Nasbcn9-Oct-07 23:37 
QuestionSort Unbound Datagridview column Pin
helelark1239-Oct-07 20:25
helelark1239-Oct-07 20:25 
QuestionDataset Pin
vidya1109-Oct-07 20:12
vidya1109-Oct-07 20:12 
AnswerRe: Dataset [modified] Pin
vidya11010-Oct-07 0:15
vidya11010-Oct-07 0:15 
GeneralRe: Dataset Pin
Vimalsoft(Pty) Ltd10-Oct-07 23:13
professionalVimalsoft(Pty) Ltd10-Oct-07 23:13 
Questionforms loading [modified] Pin
chamee1239-Oct-07 19:13
chamee1239-Oct-07 19:13 
AnswerRe: forms loading Pin
Christian Graus9-Oct-07 19:32
protectorChristian Graus9-Oct-07 19:32 
AnswerRe: forms loading Pin
manni_n10-Oct-07 2:29
manni_n10-Oct-07 2:29 
QuestionEXCEPTION FROM HRESULT Pin
dienadel9-Oct-07 18:06
dienadel9-Oct-07 18:06 
AnswerRe: EXCEPTION FROM HRESULT Pin
Christian Graus9-Oct-07 18:29
protectorChristian Graus9-Oct-07 18:29 
AnswerRe: EXCEPTION FROM HRESULT Pin
ChandraRam9-Oct-07 21:41
ChandraRam9-Oct-07 21:41 
QuestionUsing TAP messaging protocol Pin
Jack Black X9-Oct-07 17:35
Jack Black X9-Oct-07 17:35 
Questioncheckbox defaults not set on batabound vb form with strong typed dataset Pin
pa281409-Oct-07 15:22
pa281409-Oct-07 15:22 
Questionimages in the button Pin
shri509-Oct-07 14:50
shri509-Oct-07 14:50 
AnswerRe: images in the button Pin
Luc Pattyn9-Oct-07 14:56
sitebuilderLuc Pattyn9-Oct-07 14:56 
QuestionCreating Tab Delimited Output File Pin
Swisher249-Oct-07 13:18
Swisher249-Oct-07 13:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.