1

Virtual Basic, How do I make a local variable global?

Karrfis 11/19/15 8:03 pm
172
11/20/2015 12:23 am
For me college project i am making a program that does stuff

I thought i had finished but re-reading the assignment breif on said program i need to have some thingies detect a variable and react accordingly

I have the variable "temp" declared as an integer in my first public sub with all its stuffies



and I need to put it in here and one other place for the objects to interact with the temp variable in order to be or not be operated



I have tried declaring the temp as public soo it would look like
Dim Sensor1, Sensor2, Sensor3, SensorTotal, Public Temp as Interger

I have moved that public around,. put it infront of Dim, tried to declare temp under it's own Dim but that didnt do anything

anyone wanna help meh?
Posted by
Karrfis
Site Moderator
Level 35 : Artisan uwu uwu
460

  Have something to say?

JoinSign in

1

anonpmc1231920
11/20/2015 12:23 am
Level 17 : Journeyman Miner
[deleted]
1

Welcome