Message 1 of 14
Do... While Loop Question
Not applicable
01-13-2003
02:36 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello, I'm pretty new to VBA so go easy on me but here's my question. The
code below doesn't work, no error, nothing. It just seems to never get
there or it skips it completely, I'm not sure which. There is a
Select...Case function right above it that runs exactly how it should but
then it just ends, thanks. I'm trying to get dimensions in the X direction
for a grid system that I'm going to draw with the provided input. I put
each given dimension into an array of Variants called varXdims, here's the
code:
strGridA = "A"
intIndex = 0
Do
dblCurDist = .GetDistance(, "Enter the distance from grid " &
strGridA & " to grid " & strGridA + 1)
ReDim Preserve varXDims(UBound(varXDims) + 1)
varXDims(intIndex) = .DistanceToReal(dblCurDist,
acArchitectural)
strGridA = strGridA + 1
intIndex = intIndex + 1
Loop Until blnCheck = IsEmpty(varXDims(intIndex))
--
matthew g.
code below doesn't work, no error, nothing. It just seems to never get
there or it skips it completely, I'm not sure which. There is a
Select...Case function right above it that runs exactly how it should but
then it just ends, thanks. I'm trying to get dimensions in the X direction
for a grid system that I'm going to draw with the provided input. I put
each given dimension into an array of Variants called varXdims, here's the
code:
strGridA = "A"
intIndex = 0
Do
dblCurDist = .GetDistance(, "Enter the distance from grid " &
strGridA & " to grid " & strGridA + 1)
ReDim Preserve varXDims(UBound(varXDims) + 1)
varXDims(intIndex) = .DistanceToReal(dblCurDist,
acArchitectural)
strGridA = strGridA + 1
intIndex = intIndex + 1
Loop Until blnCheck = IsEmpty(varXDims(intIndex))
--
matthew g.