General pointer needed (Just a quickie!)
Posted on 2000-02-23
I'm new to the game - only just mastering VB fundamentals and don't have access to a manual that provides an answer to this one. Can anyone help?
I am building a front end that sends data to /returns data from an AS/400 via .dll objects talking to AS400 data queues.
The nature of the AS400 dictates that the data is sent/received as a text string yet it will consist of a mixture of text & numeric values.
I need to be able to convert interger values to fixed length text strings that can then be re-converted at the AS400 end.
I have an item counter that takes up seven 'spaces' of the data block, passed to the data queue
If the integer value of that counter is 26
Dim strVar as String * 7
intVar Cstr strVar
Then strVar would look like this "26 "
I need to be able to send this data back to the AS400 as "0000026"