Shane0000 Posted August 6, 2008 Share Posted August 6, 2008 Is there anyway to create a variable of a certian type? I need to emulate the VB code: Dim Value1 As String $str = "char var4[128]" $a = DllStructCreate($str) Returns 'Bad variable type.' Dim $Value1 = "" doesnt seem to suffice either. I ve tried DLLCreateStruct but it is of the wrong data type. Im trying to return some variables to a empty var via VB Com controls Link to comment Share on other sites More sharing options...
enaiman Posted August 6, 2008 Share Posted August 6, 2008 I can see you've read the help file because the part you've showed here is taken from the example. I tried the example and it works fine for me. Try to run the whole example and see if you get any errors. Maybe it's about the Autoit version you're using - mine is 3.2.12.1 SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script wannabe "Unbeatable" Tic-Tac-Toe Paper-Scissor-Rock ... try to beat it anyway :) Link to comment Share on other sites More sharing options...
LarryDalooza Posted August 7, 2008 Share Posted August 7, 2008 Dim $a = String("") Dim $b = Number(0) MsgBox(0,IsNumber($B),IsString($a)) MsgBox(0,IsNumber($a),IsString($B)) AutoIt has helped make me wealthy Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now